Add forms for defining room layouts
This commit is contained in:
@@ -64,6 +64,8 @@ module_load_include('inc', 'booking', 'booking.studygroups_admin');
|
||||
module_load_include('inc', 'booking', 'booking.travel');
|
||||
// Load the include for managing room bookings and definitions
|
||||
module_load_include('inc', 'booking', 'booking.rooms');
|
||||
// Load the include for room layout definitions
|
||||
module_load_include('inc', 'booking', 'booking.rooms_admin');
|
||||
|
||||
function booking_init() {
|
||||
date_default_timezone_set(TIMEZONE);
|
||||
@@ -466,8 +468,27 @@ function booking_menu() {
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_view_definitions'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/rooms/locations/add'] = array(
|
||||
'title' => 'Add Room Location Definition',
|
||||
'description' => 'Add Room Location Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_roomlocation_define_form', true),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/rooms/locations/%/edit'] = array(
|
||||
'title' => 'Edit Room Location Definition',
|
||||
'description' => 'Edit Room Location Definition',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_roomlocation_define_form', false, 5),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_ACTION,
|
||||
);
|
||||
|
||||
$items['admin/config/booking/rooms/create'] = array(
|
||||
'title' => 'Add New Room Definition',
|
||||
'description' => 'Add room definition for the Event Booking module',
|
||||
|
Reference in New Issue
Block a user