function bat_event_menu in Booking and Availability Management Tools for Drupal 7
Implements hook_menu().
File
- modules/
bat_event/ bat_event.module, line 20 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_menu() {
$items = array();
$items['admin/bat/config/events/event/%/edit'] = array(
'title' => 'Event States',
'description' => 'Edit event state.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bat_event_states_edit_event_form',
5,
),
'access arguments' => array(
'configure bat settings',
),
'type' => MENU_NORMAL_ITEM,
);
$items['admin/bat/config/events/event/%/delete'] = array(
'title' => 'Event States',
'description' => 'Delete event state.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bat_event_states_delete_event_form',
5,
),
'access arguments' => array(
'configure bat settings',
),
'type' => MENU_NORMAL_ITEM,
);
$items['bat_event/state_event/autocomplete/%/%/%'] = array(
'page callback' => 'bat_event_reference_autocomplete',
'page arguments' => array(
3,
4,
5,
),
'access arguments' => array(
'access content',
),
'type' => MENU_CALLBACK,
);
$items['admin/bat/events/event-types/manage/%bat_event_type/states'] = array(
'title' => 'Manage states',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'bat_event_states_form',
5,
),
'access arguments' => array(
'configure bat settings',
),
'type' => MENU_LOCAL_TASK,
'weight' => 0,
);
return $items;
}