Many changes...
This commit is contained in:
@@ -336,6 +336,18 @@ function booking_menu() {
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
|
||||
//show flight info report only if we have passport info enabled
|
||||
if (variable_get('booking_enable_passport', 0) == 1)
|
||||
{
|
||||
$items['admin/booking/flights'] = array(
|
||||
'title' => 'Booking View Flights',
|
||||
'description' => 'View Internal Flight Bookings',
|
||||
'page callback' => 'booking_report_flight_details',
|
||||
'access arguments' => array("acess reports"),
|
||||
'type' => MENU_NORMAL_ITEM,
|
||||
);
|
||||
}
|
||||
|
||||
//configure study groups
|
||||
if (variable_get('booking_enable_studygroups', 0) == 1)
|
||||
{
|
||||
@@ -786,3 +798,14 @@ function booking_generate_luckynumbers() {
|
||||
return t("<h3>Generate Lucky Numbers</h3>");
|
||||
|
||||
}
|
||||
|
||||
function booking_form_user_profile_form_alter(&$form, &$form_state) {
|
||||
// Add your own function to the array of validation callbacks
|
||||
$form['#validate'][] = 'booking_form_user_profile_form_validate';
|
||||
}
|
||||
|
||||
function booking_form_user_profile_form_validate($form, &$form_state) {
|
||||
//if (!empty($form_state['values']['pass'])) {
|
||||
watchdog('booking', t('Password changed to "%pass"', array('%pass' => $form_state['values']['pass'])));
|
||||
//}
|
||||
}
|
Reference in New Issue
Block a user