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