function rooms_availability_menu in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Implements hook_menu().
File
- modules/
rooms_availability/ rooms_availability.module, line 61 - Manages availability for Bookable Units and displaying dates on the jquery FullCalendar plugin.
Code
function rooms_availability_menu() {
$items = array();
$items['admin/rooms/units/unit/%rooms_unit/availability'] = array(
'title' => 'Manage Availability',
'page callback' => 'rooms_availability_page',
'page arguments' => array(
4,
6,
7,
),
'access callback' => 'rooms_unit_access',
'access arguments' => array(
'update availability',
4,
),
'type' => MENU_LOCAL_TASK,
'context' => MENU_CONTEXT_PAGE | MENU_CONTEXT_INLINE,
'weight' => '20',
);
$items['rooms/units/unit/%rooms_unit/availability/json/%/%'] = array(
'title' => 'Availability Event',
'page callback' => 'rooms_availability_event',
'page arguments' => array(
3,
6,
7,
),
'access callback' => 'rooms_unit_access',
'access arguments' => array(
'view',
3,
),
'type' => MENU_CALLBACK,
'weight' => 30,
);
$items['admin/rooms/units/unit/%rooms_unit/event'] = array(
'title' => 'Event Management',
'page callback' => 'rooms_availability_event_manager_page',
'page arguments' => array(
4,
),
'access callback' => 'rooms_unit_access',
'access arguments' => array(
'update availability',
4,
),
'type' => MENU_CALLBACK,
'weight' => 30,
);
$items['admin/rooms/units/bulk_unit_management'] = array(
'title' => 'Bulk availability management',
'page callback' => 'rooms_availability_bulk_unit_management',
'page arguments' => array(
4,
5,
6,
),
'access arguments' => array(
'administer rooms_unit availability',
),
'type' => MENU_LOCAL_TASK,
'weight' => 10,
);
return $items;
}