Added option to include notify email address as BCC
This commit is contained in:
@@ -552,7 +552,8 @@ function booking_form($node, &$form_state, $inserting = FALSE) {
|
||||
'#title' => t('Your Medicare Number'),
|
||||
'#maxlength' => 15,
|
||||
'#size' => 15,
|
||||
'#required' => variable_get('booking_enforce_medicare_verification', 1) == 1 ? TRUE : FALSE,
|
||||
'#required' => FALSE,
|
||||
//'#required' => variable_get('booking_enforce_medicare_verification', 1) == 1 ? TRUE : FALSE,
|
||||
'#default_value' => empty($data->booking_medicare) ? '' : $data->booking_medicare
|
||||
);
|
||||
}
|
||||
@@ -1158,6 +1159,12 @@ function _booking_validate($node, &$form_state) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//verify international address has updated the state field
|
||||
if ((strcasecmp($form_state['booking_country'], 'Australia') !== 0) && (strcasecmp($form_state['booking_state'], 'Other') !== 0))
|
||||
{
|
||||
form_set_error('booking_state', t('You must enter your State in the address section of the Contact details. Please choose a state of Other and specify N/A if your country does not have states.'));
|
||||
}
|
||||
|
||||
//verify passport number
|
||||
if (variable_get('booking_enable_passport', 0) == 1 && $form_state['booking_country'] == 'Australia')
|
||||
|
Reference in New Issue
Block a user