I am trying to get the content type to conditionally add JavaScript code/files to the template.
The code in template.php is the following one:
echo $node->type;
The same line in "node.tpl.php" is returning the content type. How do I get it to work in template.php?