Hi all,

I have a question about drupal. I am kinda new to drupal. So please help me with this:
What is the different between page and node?? In the function __phptemplate_variables(), i see
switch ($hook) {
case 'page': break;
case 'node': break;
}

I am wondering what is the diff between this 2. Thanks.

Comments

VM’s picture

John Morahan’s picture

They allow you to define different variables for the different template files, page.tpl.php and node.tpl.php respectively. You can also define variables for the other template files in the same way. (page.tpl.php applies to the whole page, node.tpl.php only applies to the node part - not the blocks, header/footer etc.)