You are here

function merci_restrictions_menu in MERCI (Manage Equipment Reservations, Checkout and Inventory) 7.3

Implements hook_menu().

File

merci_restrictions/merci_restrictions.module, line 80

Code

function merci_restrictions_menu() {
  $items = array();
  $items[MERCI_RESTRICTIONS_TYPE_PATH] = array(
    'title' => 'Merci Restrictions',
    'description' => 'Manage fields for merci restrictions',
    'page callback' => 'merci_restrictions_redirect',
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer MERCI',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items = array();
  $items['admin/merci/config/merci-restrictions/settings'] = array(
    'title' => 'Sitewide merci restrictions',
    'description' => "Site's default merci restrictions.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'merci_restrictions_sitewide_settings',
    ),
    'access arguments' => array(
      'administer all merci restrictions',
    ),
    'access callback' => 'user_access',
    'file' => 'merci_restrictions.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );

  /*
    $items['admin/config/merci/merci-restrictions/settings'] = array(
   'title' => 'Sitewide merci restrictions',
   'description' => "Site's default merci restrictions.",
   'page callback' => 'drupal_get_form',
   'page arguments' => array('merci_restrictions_sitewide_settings'),
   'access arguments' => array('administer MERCI'),
   'access callback' => 'user_access',
   'file' => 'merci_restrictions.admin.inc',
   'type' => MENU_LOCAL_TASK,
   'weight' => 5,
    );
  */
  return $items;
}