Added reserve leader
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user