В template.php
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_node(&$vars) {
_vdump(get_defined_vars(), 1);
}
/**
* Override or insert PHPTemplate variables into the templates.
*/
function phptemplate_preprocess_page(&$vars) {
_vdump(get_defined_vars(), 1);
}
И добавить функцию дампа в пользовательский модуль
<code>/*
* Custom dump function
*
* @param $vars
* An string or array containing the data.
* @param $keys
* If true6 function will return keys of $vars array
* @return a dump of $vars as drupal message.
*/
function _vdump($var, $keys = FALSE) {
if($keys){
drupal_set_message('<pre>' . print_r(array_keys($var), 1) . '
');} else {drupal_set_message ('
' . print_r($var, 1) . '
');}}