drupal bootstrap script: how to get list of all nodes of type x?

Posted by groovehunter on Stack Overflow See other posts from Stack Overflow or by groovehunter
Published on 2010-03-19T12:32:55Z Indexed on 2010/03/19 12:41 UTC
Read the original article Hit count: 295

Filed under:
|
|
|
|

hi.

I create a custom import and export, at the moment as an external script (via bootstrap), i plan to create a module in a more generic fashion lateron.

I am building a frontend for nagios and for our host management and nagios configuration btw. Maybe it might become useful for other environments (networkmanagement)

Now i need to know how to get list of all nodes of type x?

I want to avoid direct SQL.

A suggestion i got was to make an rss and parse it but i acess the drupal db a dozen times to extract various nodes, so it feels strange to do a web request for one thing

So what i am looking for as newbie drupal dev is just a pointer to basic search module api for this task

TIA florian

© Stack Overflow or respective owner

Related posts about drupal

Related posts about bootstrap