I am using the garland theme and have tried many different locations for the link_page code to go into. But I keep gettings errors. The code looks different than the above. Can anybody spot where I should insert the code? I'm onling posting part of the template file as it is quite large.
This is working code posted on: http://drupal.org/node/117123
function _phptemplate_variables($hook, $vars) {
// Load the node region only if we're not in a teaser view.
if ($hook == 'node' && !$vars['teaser']) {
// Load region content assigned via blocks.
foreach (array('inline1') as $region) {
$vars[$region] = theme('blocks', $region);
}
}
if ($hook == 'page') {
$vars['head_title'] = page_title_page_get_title();
}
return $vars;
}
************
This is my un altered code:
/**
* Override or insert PHPTemplate variables into the templates.
*/
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($secondary = menu_secondary_local_tasks()) {
$output = '';
$output .= "
\n". $secondary ."
\n";
$vars['tabs2'] = $output;
}
// Hook into color.module
if (module_exists('color')) {
_color_page_alter($vars);
}
return $vars;
}
return array();
}
Has any other Garland user been able to incorporate the Page Title Module into this php, if so, can you share how?