By xtiansimon on
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
$node has appears in two
$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})
Thanks for the info...
But this points to where they are located in the template files. What is the scope of these var's use? Visibility for one.
The scope is limited to the
The scope is limited to the specific tpl.php file.
and its theme functions...?
and its theme functions...?
Not sure what "its theme
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.