By sopris on
Hi everyone,
Im banging my head a bit...
How do I get all nodes of a specific type? I dont want links, I want the actuall nodes as arrays or objects, along with all the respective data for each node.
In my little head I am thinking of something along the lines of a magic API call like:
$nodes[ 'someTypeHere' ] = get_all_nodes( 'someTypeHere' );
Where this magic "get" function would return every node as an object or array for the passed "type"...
If such a magic API function does exist, what is its name because I cant seem to find one, and if one does not exist, does anyone know of a module which might contain the same type of functionality which I could gut for my custom mod? Or even have any working code for such a thing?
Thanks in advance,
Sopris
Comments
I fig'd it out, thanks to
I fig'd it out, thanks to another post.
The user passes in a type from a previous page, I then grab all nodes for the type and return a complete CSV dump. Export made simple, sans the bells and whistles.