Progress on form to define number of leader/helper groups
This commit is contained in:
@@ -180,6 +180,49 @@ function booking_update_7203() {
|
|||||||
db_create_table('booking_studygroup_list', $booking_studygroup_list);
|
db_create_table('booking_studygroup_list', $booking_studygroup_list);
|
||||||
db_create_table('booking_studygroup_mapping', $booking_studygroup_mapping);
|
db_create_table('booking_studygroup_mapping', $booking_studygroup_mapping);
|
||||||
db_create_table('booking_leadhelp_list', $booking_leadhelp_list);
|
db_create_table('booking_leadhelp_list', $booking_leadhelp_list);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Pre-populate the study group sessions table
|
||||||
|
*/
|
||||||
|
function booking_update_7204() {
|
||||||
|
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Monday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Tuesday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Wednesday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Thursday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Friday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
$result = db_insert('booking_studygroup_list')
|
||||||
|
->fields(array(
|
||||||
|
'booking_eventid' => 2,
|
||||||
|
'booking_studygroup_descrip' => 'Saturday',
|
||||||
|
))
|
||||||
|
->execute();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -53,6 +53,8 @@ module_load_include('inc', 'booking', 'booking.emails');
|
|||||||
module_load_include('inc', 'booking', 'booking.import_data');
|
module_load_include('inc', 'booking', 'booking.import_data');
|
||||||
// Load the include for variety session configuration
|
// Load the include for variety session configuration
|
||||||
module_load_include('inc', 'booking', 'booking.variety');
|
module_load_include('inc', 'booking', 'booking.variety');
|
||||||
|
// Load the include for study group configuration
|
||||||
|
module_load_include('inc', 'booking', 'booking.studygroups');
|
||||||
|
|
||||||
function booking_init() {
|
function booking_init() {
|
||||||
date_default_timezone_set(TIMEZONE);
|
date_default_timezone_set(TIMEZONE);
|
||||||
@@ -277,8 +279,22 @@ function booking_menu() {
|
|||||||
'type' => MENU_NORMAL_ITEM,
|
'type' => MENU_NORMAL_ITEM,
|
||||||
);
|
);
|
||||||
|
|
||||||
//The administration menu
|
/**
|
||||||
|
* Define the administration menu
|
||||||
|
*/
|
||||||
|
|
||||||
|
//configure study groups
|
||||||
|
$items['admin/config/booking/studygroups/select'] = array(
|
||||||
|
'title' => 'Study Group Leaders',
|
||||||
|
'description' => 'Define attendees to lead or help study groups',
|
||||||
|
'page callback' => 'drupal_get_form',
|
||||||
|
'page arguments' => array('booking_available_leadhelp_select_form'),
|
||||||
|
'access arguments' => array('access administration pages'),
|
||||||
|
'type' => MENU_LOCAL_ACTION,
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
//Configure prices
|
||||||
$items['admin/config/booking/prices/create'] = array(
|
$items['admin/config/booking/prices/create'] = array(
|
||||||
'title' => 'Add New Price Entry',
|
'title' => 'Add New Price Entry',
|
||||||
'description' => 'Add priceentry for the Booking module',
|
'description' => 'Add priceentry for the Booking module',
|
||||||
|
Reference in New Issue
Block a user