_phptemplate_variables
themes/garland/template.php, строка 57
- Версии
- 5
_phptemplate_variables($hook, $vars)
Override or insert PHPTemplate variables into the templates.
Код
<?php
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '<span class="clear"></span>';
$output .= "<ul class=\"tabs secondary\">\n". $secondary ."</ul>\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
return $vars;
}
return array();
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии