Drupal: output theme variables


/ Published in: HTML
Save to your folder(s)

Drupal snippet: outputs all theming variables of a content type or page. Add to template.php the following function:

function _phptemplate_variables($hook, $vars) {
return array('vars_data' => $vars);
}


then add the snippet to the relative node.tpl.php file.


Copy this code and paste it in your HTML
  1. <pre><?php print htmlentities(print_r($vars_data, 1)) ?></pre>

URL: http://www.group42.ca/theme_variable_total_visibility

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.