// Modified by Michelle (custom)
function _phptemplate_variables($hook, $vars) {
if (module_exists('advanced_profile')) {
$vars = advanced_profile_addvars($hook, $vars);
}
if ($hook == 'page') {
if (arg(0) == 'user') {
// Remove contact tab
phptemplate_remove_tab('Contact', &$vars);
}
// Set all tabs on the user page to have the email address as the title
$uid = arg(1);
$account = user_load
(array('uid' =>
$uid));
}
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 $vars;
}