Archive for the ‘Drupal API’ Category

Need to display a node?

Tuesday, October 28th, 2008

Let me introduce you to some Drupal APIs

Node Load

to load a node variables

$node = node_load($nid);

Node View

To load a node teaser/full body view

$node = node_load($nid); 

print node_view($node)