You are here

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

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

Implementation of hook_menu().

File

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

Code

function merci_menu() {
  $admin = array(
    'administer MERCI',
  );

  // 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',
    ),
    'type' => MENU_CALLBACK,
  );

  // Administration settings.
  $items['admin/settings/merci'] = array(
    'title' => 'MERCI',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'merci_admin_settings',
    ),
    'access callback' => 'user_access',
    'access arguments' => $admin,
    'description' => t('Configure system settings for MERCI.'),
  );
  $items['merci/taxonomy'] = array(
    'title' => 'JSON interface for node taxonomy',
    'description' => 'Takes a node ID and returns taxonomy data as JSON',
    'page arguments' => array(
      2,
    ),
    'page callback' => 'merci_taxonomy_json',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['merci/contract'] = array(
    'title' => 'Printable contract',
    'description' => 'Takes a node ID and returns a printable contract',
    'page arguments' => array(
      2,
    ),
    'page callback' => 'merci_printable_contract',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['merci/confirm'] = array(
    'title' => 'Confirm MERCI Reservation',
    'description' => 'Takes a node ID and returns a page confirming Reservation',
    'page arguments' => array(
      2,
    ),
    'page callback' => 'merci_confirm_reservation',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}