I asked around at the IRC and the best answer was its should be a http://api.drupal.org/api/drupal/globals/6">Global. Only, its not listed there and neither is $form, for example.

I'm looking for a master list like the API page so I can get my var bearings--so to speak. :)

xtian

Comments

nevets’s picture

$node has appears in two templates node.tpl.php and page.tpl.php. In the later case (page.tpl.php), $node is only set when viewing a single node (ie unaliased path of node/{nid})

xtiansimon’s picture

But this points to where they are located in the template files. What is the scope of these var's use? Visibility for one.

nevets’s picture

The scope is limited to the specific tpl.php file.

xtiansimon’s picture

and its theme functions...?

nevets’s picture

Not sure what "its theme functions" refers to. If the function has $node passed in, yes, it as access to $node. hook_preprocess_page() and hook_preprocess_node() also have access to it through the variables array passed in.