You are here

function merci_menu in MERCI (Manage Equipment Reservations, Checkout and Inventory) 6.2

Same name and namespace in other branches
  1. 6 merci.module \merci_menu()
  2. 7.2 merci.module \merci_menu()

Implementation of hook_menu().

File

./merci.module, line 51
MERCI - Managed Equipment Reservation Checkout and Inventory

Code

function merci_menu() {

  // Callback for AJAX adding of item selectors.
  $items['merci/js'] = array(
    'title' => 'Javascript Choice Form',
    'page callback' => 'merci_choice_js',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'includes/menu.inc',
    'type' => MENU_CALLBACK,
  );
  $items['merci/taxonomy/%node/%/%'] = array(
    'title' => 'JSON interface for node taxonomy',
    'description' => 'Takes a node ID and returns taxonomy data as JSON',
    'page callback' => 'merci_taxonomy_json',
    'access arguments' => array(
      'manage reservations',
    ),
    'page arguments' => array(
      2,
      3,
      4,
    ),
    'file' => 'includes/menu.inc',
    'type' => MENU_CALLBACK,
  );

  // Adds Manage Equipment to Admin Interfaces
  //
  $items['admin/merci/manage'] = array(
    'title' => 'Manage Equipment',
    'description' => 'Manage Equipment Reservations, Checkout and Inventory (MERCI)',
    'position' => 'right',
    'page callback' => 'system_admin_menu_block_page',
    'access arguments' => array(
      'manage reservations',
    ),
    'file' => 'system.admin.inc',
    'file path' => drupal_get_path('module', 'system'),
    'weight' => -19,
  );
  $items['admin/merci/manage/current_inventory'] = array(
    'title' => 'Current Inventory',
    'description' => 'Displays list',
    'page callback' => 'theme',
    'page arguments' => array(
      'merci_current_inventory',
    ),
    'access arguments' => array(
      'manage reservations',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/merci/manage/current_inventory/%'] = array(
    'title' => 'Current Inventory',
    'description' => 'Displays list',
    'type' => MENU_CALLBACK,
  );

  // Standard Administration settings.
  $items['admin/settings/merci'] = array(
    'title' => 'MERCI Configuration',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'merci_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => array(
      'administer MERCI',
    ),
    'description' => 'Configure system settings for MERCI.',
    'file' => 'includes/merci.admin.inc',
  );
  $items['admin/settings/merci/edit'] = array(
    'title' => 'Edit',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -10,
  );
  return $items;
}