You are here

function patch_manager_menu in Patch manager 7

Same name and namespace in other branches
  1. 6 patch_manager.module \patch_manager_menu()

Implements hook_menu().

File

./patch_manager.module, line 22
Patch manager provides developers with tools for managing patches.

Code

function patch_manager_menu() {
  $items = array();
  $items['admin/structure/patch'] = array(
    'title' => 'Patches',
    'description' => 'Patch management of core and contributed modules.',
    'access arguments' => array(
      'administer patch manager',
    ),
    'page callback' => 'patch_manager_list',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/structure/patch/list'] = array(
    'title' => 'List',
    'description' => 'List patches stored with the patch manager.',
    'access arguments' => array(
      'administer patch manager',
    ),
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/structure/patch/configure'] = array(
    'title' => 'Configure',
    'description' => 'Configure settings for patch manager.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'patch_manager_settings_form',
    ),
    'access arguments' => array(
      'administer patch manager',
    ),
    'weight' => 30,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/structure/patch/add'] = array(
    'title' => 'Add',
    'description' => 'Add a new patch.',
    'page callback' => 'drupal_goto',
    'page arguments' => array(
      'node/add/patch',
    ),
    'access arguments' => array(
      'administer patch manager',
    ),
    'weight' => 20,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/structure/patch/scan'] = array(
    'title' => 'Scan',
    'description' => 'Scan for patches.',
    'page callback' => 'patch_manager_page_scan',
    'access arguments' => array(
      'administer patch manager',
    ),
    'weight' => 40,
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}