You are here

function bat_calendar_reference_menu in Booking and Availability Management Tools for Drupal 7

Implements hook_menu().

File

modules/bat_calendar_reference/bat_calendar_reference.module, line 25
Defines a field type for referencing event information.

Code

function bat_calendar_reference_menu() {
  $items['bat_calendar_reference/autocomplete/units/%/%/%'] = array(
    'page callback' => 'bat_calendar_reference_units_autocomplete',
    'page arguments' => array(
      3,
      4,
      5,
    ),
    'access arguments' => array(
      'reference unit calendar events',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['bat_calendar_reference/autocomplete/unit_types/%/%/%'] = array(
    'page callback' => 'bat_calendar_reference_unit_types_autocomplete',
    'page arguments' => array(
      3,
      4,
      5,
    ),
    'access arguments' => array(
      'reference unit calendar events',
    ),
    'type' => MENU_CALLBACK,
  );
  $items['bat_calendar_reference/autocomplete/event_types/%/%/%'] = array(
    'page callback' => 'bat_calendar_reference_event_types_autocomplete',
    'page arguments' => array(
      3,
      4,
      5,
    ),
    'access arguments' => array(
      'reference unit calendar events',
    ),
    'type' => MENU_CALLBACK,
  );
  return $items;
}