[support] node_load in Drupal 7

Jamie Holly hovercrafter at earthlink.net
Mon Jan 23 22:40:15 UTC 2012


You can do that with node_load_multiple:

http://api.drupal.org/api/drupal/modules--node--node.module/function/node_load_multiple/7

The conditions are going away in the future though. You're best off to 
use EntityFieldQuery:

http://drupal.org/node/1343708

Jamie Holly
http://www.intoxination.net
http://www.hollyit.net


On 1/23/2012 4:32 PM, Joel Willers wrote:
> In Drupal 6, you could node_load( array( 'title' =>  'node title', 'type' =>  'page' )
> Is there something similar in D7? It seems to force you to know the NID. I need to load by node title.
>
> This is actually for a Panel context, which is NID also, so I was going to make a new argument for Node Title. I think there is a Views Context, but I don't fully grasp that right now, so I haven't really looked into it. Suggestions?
>
>
> Joel Willers
>


More information about the support mailing list