[drupal-devel] node_load() change in HEAD

Karoly Negyesi karoly at negyesi.net
Sat Jul 23 10:45:26 UTC 2005


On Saturday 23 July 2005 10:14, Bèr Kessels wrote:
> But does, e.g. node_load(array('title'=>'this is a node')) still work
> too?

Sure it does. The first parameter is mixed -- it can be an array of 
conditions or a nid.

> > There is a bit more: you now SHOULD write
> >
> > >    node_load($nid);
> >
> > if you want node_load to cache.

I will write a patch to revert this, so 

node_load(array('nid' => $nid))

will cache again very soon.

Regards

NK



More information about the drupal-devel mailing list