only load travel include when necessary

This commit is contained in:
Nathan Coad
2018-07-16 16:20:21 +10:00
parent 71d92a4081
commit 5020b3466e

View File

@@ -64,7 +64,7 @@ module_load_include('inc', 'booking', 'booking.studygroups_admin');
module_load_include('inc', 'booking', 'booking.studygroups_report'); module_load_include('inc', 'booking', 'booking.studygroups_report');
module_load_include('inc', 'booking', 'booking.studygroup_leaders'); module_load_include('inc', 'booking', 'booking.studygroup_leaders');
// Load the include for the travel form // Load the include for the travel form
module_load_include('inc', 'booking', 'booking.travel'); //module_load_include('inc', 'booking', 'booking.travel');
// Load the include for managing room bookings and definitions // Load the include for managing room bookings and definitions
module_load_include('inc', 'booking', 'booking.rooms'); module_load_include('inc', 'booking', 'booking.rooms');
// load the include for mass-allocating people to rooms // load the include for mass-allocating people to rooms
@@ -311,6 +311,7 @@ function booking_menu() {
'page arguments' => array(3), //include the temporary id 'page arguments' => array(3), //include the temporary id
'access arguments' => array('create travel entry'), 'access arguments' => array('create travel entry'),
'type' => MENU_SUGGESTED_ITEM, 'type' => MENU_SUGGESTED_ITEM,
'file' => 'booking.travel.inc',
); );
$items['coming'] = array( $items['coming'] = array(