/ Published in: PHP
An easy debug trick: gives you a variable that you can print in any tpl.php to find out what vars you have available there.
Expand |
Embed | Plain Text
/** */ function _phptemplate_variables($hook, $vars) { //... $vars['args'] = $vars; //TODO: remove this debug variable. return $vars; }
Comments
Subscribe to comments
You need to login to post a comment.

$hook - what is?
$hook is always passed to phptemplatevariables, it contains the theme hook being called. e.g 'block' in case theme_block() is called.