Added reserve leader

This commit is contained in:
2014-02-11 15:17:26 +11:00
parent fa2fb84f0e
commit 7c252d4ff6
5 changed files with 105 additions and 40 deletions

View File

@@ -809,8 +809,12 @@ function _booking_validate($node, &$form_state) {
//if DOB on form is more recent than DOB limit, display validation error
if ($dob_check > _booking_max_dob_ts())
{
watchdog('booking', "Attempt to register from !first !last, who is too young (!info) to attend event.",
array ('!first' => $form_state['booking_firstname'], '!last' => $form_state['booking_lastname'], '!info' => var_export($form_state['booking_dob'], TRUE) ) );
form_set_error('booking_dob', t('Unfortunately you are too young to attend !event.',
array('!event' => variable_get('booking_event_name','this event'))));
array ('!event' => variable_get('booking_event_name','this event'))));
}
//check the terms and conditions have been agreed to
if ($form_state['booking_agreement'] == 0)