You are here

function spaces_taxonomy_menu_alter in Spaces 6.3

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

Implementation of hook_menu_alter().

File

spaces_taxonomy/spaces_taxonomy.module, line 86

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;
  }
}