Added beginning code for room allocation, changing studygroup role field
This commit is contained in:
@@ -60,6 +60,8 @@ module_load_include('inc', 'booking', 'booking.variety');
|
||||
module_load_include('inc', 'booking', 'booking.studygroups');
|
||||
// Load the include for the travel form
|
||||
module_load_include('inc', 'booking', 'booking.travel');
|
||||
// Load the include for managing room bookings and definitions
|
||||
module_load_include('inc', 'booking', 'booking.rooms');
|
||||
|
||||
function booking_init() {
|
||||
date_default_timezone_set(TIMEZONE);
|
||||
@@ -201,6 +203,14 @@ function booking_menu() {
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
$items['admin/config/booking/rooms'] = array(
|
||||
'title' => 'Booking module room definitions',
|
||||
'description' => 'Configure room definitions for the Event Booking module',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_define_form'),
|
||||
'access arguments' => array('administer site configuration'),
|
||||
//'type' => MENU_LOCAL_TASK,
|
||||
);
|
||||
|
||||
//pages for attendees to fill out information
|
||||
$items['booking'] = array(
|
||||
@@ -374,6 +384,17 @@ function booking_menu() {
|
||||
);
|
||||
}
|
||||
|
||||
//configure rooms
|
||||
$items['admin/booking/rooms/assign'] = array(
|
||||
'title' => 'Assign Rooms',
|
||||
'description' => 'Assign attendees to rooms',
|
||||
'page callback' => 'drupal_get_form',
|
||||
'page arguments' => array('booking_rooms_allocate_form'),
|
||||
'access arguments' => array('edit bookings'),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
|
||||
//Configure prices
|
||||
$items['admin/config/booking/prices/create'] = array(
|
||||
'title' => 'Add New Price Entry',
|
||||
@@ -393,6 +414,7 @@ function booking_menu() {
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
//Configure events
|
||||
$items['admin/config/booking/events/create'] = array(
|
||||
'title' => 'Add New Event',
|
||||
'description' => 'Add event for the Booking module',
|
||||
@@ -412,6 +434,7 @@ function booking_menu() {
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
//configure variety sessions
|
||||
$items['admin/config/booking/variety/create'] = array(
|
||||
'title' => 'Add New Variety Session Timeslot',
|
||||
'description' => 'Add variety session timeslot for the Booking module',
|
||||
|
Reference in New Issue
Block a user