Added option to include notify email address as BCC

This commit is contained in:
2015-09-12 09:38:28 +10:00
parent e6fa6f0ee5
commit 97bd469d98
3 changed files with 82 additions and 15 deletions

View File

@@ -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')