Anonymous
public text v1 · immutable<?php
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
case 'page':
if (drupal_is_front_page()) { // is this needed?
$vars['head_title'] = "My Super Duper Custom Title";
}
if (isset($vars['node'])) {
// set title of the page from the node when the page is the node.
$vars['head_title'] = check_plain($vars['node']->title);
}
break;
return $vars;
}
}