Change name of a tab for a specific content type I have a content type Organizations which is an OG Group. I would like to change the default tab name "View" only for this OG group(or content type). Tab tamer module helps with it but it does not allow the change of the name of tabs for a specific content type. 

I use sky theme(an Adaptive theme). I wrote the following code in the theme template file, 

function sky_preprocess_page(&amp;$vars) {
  if ($vars['node']-&gt;type == 'organization') {
    foreach($vars['tabs']['#primary'] AS $index =&gt; $tab) {
      if($tab['#link']['title'] == t('View')) {
        $vars['tabs']['#primary'][$index]['#link']['title'] = t('Organization Home');
      }
    }
  }
}


But this doesn't help too
You can use hook_menu_alter() to change the name of tabs for a specific content type. For example:

/**
 * Implements hook_menu_alter().
 */
function MYMODULE_menu_alter(&amp;$items) {
  unset($items['node/%node/view']['title']);
  $items['node/%node/view']['title callback'] = 'MYMODULE_view_tab_title';
  $items['node/%node/view']['title arguments'] = array(1);
}

function MYMODULE_view_tab_title($node) {
  if ($node-&gt;type == 'organization') {
    return t('Organization Home');
  }
  return t('View');
}


Remember clear Drupal cache.