Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have to load nodes of certain content type that are published.
Any built in function already available for this purpose?
To load a bunch of nodes based on custom parameters, you have to use EntityFieldQuery. It replaces the $conditions array noad_load_multiple used.
$nodes = node_load_multiple(array_keys($result['node']));
Required, but never shown