Return to Snippet

Revision: 5125
at February 13, 2008 03:30 by berkes


Initial Code
/**
 */
function _phptemplate_variables($hook, $vars) {
  //...
  $vars['args'] = $vars; //TODO: remove this debug variable.
  return $vars;
}

Initial URL

                                

Initial Description
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.

Initial Title
Easy debug variable to find what vars are available in a tpl.php file

Initial Tags
php, debug, template, drupal, Development

Initial Language
PHP