You are here

function coder_upgrade_menu_alter in Coder 7

Same name and namespace in other branches
  1. 7.2 coder_upgrade/coder_upgrade.module \coder_upgrade_menu_alter()

Implements hook_menu_alter().

File

coder_upgrade/coder_upgrade.module, line 48

Code

function coder_upgrade_menu_alter(&$items) {
  if (!module_exists('coder_review')) {

    // Remove the Coder menu item.
    unset($items['admin/config/development/coder']);

    // Promote the menu items defined by this module.
    $items['admin/config/development/coder/upgrade']['title'] = 'Coder Upgrade';
    $items['admin/config/development/coder/upgrade']['type'] = MENU_NORMAL_ITEM;
  }
}