You are here

function spaces_taxonomy_menu_alter in Spaces 7

Same name and namespace in other branches
  1. 6.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu_alter()
  2. 7.3 spaces_taxonomy/spaces_taxonomy.module \spaces_taxonomy_menu_alter()

Implements hook_menu_alter().

File

spaces_taxonomy/spaces_taxonomy.module, line 92
spaces_taxonomy.module

Code

function spaces_taxonomy_menu_alter(&$items) {
  if (isset($items['taxonomy/term/%'])) {
    $items['taxonomy/term/%/view'] = $items['taxonomy/term/%'];
    $items['taxonomy/term/%/view']['type'] = MENU_DEFAULT_LOCAL_TASK;
    $items['taxonomy/term/%/view']['title'] = 'View';
    $items['taxonomy/term/%/view']['weight'] = -10;
  }
}