You are here

function patch_manager_menu in Patch manager 6

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

Implementation of hook_menu().

File

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

Code

function patch_manager_menu() {
  $items = array();
  $items['admin/build/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/build/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/build/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/build/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/build/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;
}