You are here

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

Implements hook_menu().

File

merci_hours/merci_hours.module, line 37

Code

function merci_hours_menu() {
  $items = array();
  $items['admin/merci/config/merci-hours/settings'] = array(
    'title' => 'Sitewide merci hours',
    'description' => "Site's default merci hours.",
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'merci_hours_sitewide_settings',
    ),
    'access arguments' => array(
      'administer all merci hours',
    ),
    'access callback' => 'user_access',
    'file' => 'merci_hours.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 5,
  );

  /**
   * Ajax callback to get days open.
   */
  $items['merci_hours_dates/%/%/%'] = array(
    'page callback' => 'merci_hours_date_open_days_ajax',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access callback' => TRUE,
  );

  /**
   * Ajax callback to get hours open.
   */
  $items['merci_hours_open/%/%'] = array(
    'page callback' => 'merci_hours_open_hours_ajax',
    'page arguments' => array(
      1,
      2,
      3,
    ),
    'access callback' => TRUE,
  );
  return $items;
}