add test
This commit is contained in:
@@ -284,8 +284,9 @@ function booking_manual_email_form($form, &$form_state, $input_option = "")
|
||||
$email_options_array['remindertravelrequired'] = 'Reminder Travel Form Required Email';
|
||||
$email_options_array['travelcomplete'] = 'Travel Form Complete Email';
|
||||
$preselection_options['---'] = "---";
|
||||
$preselection_options['bookedin'] = 'bookedin';
|
||||
|
||||
$preselection_options['bookedin'] = 'Status of Booked In';
|
||||
$preselection_options['test'] = 'Testing';
|
||||
|
||||
//add in the custom email types
|
||||
for ($i = 1; $i <= variable_get('booking_custom_email_count','5'); $i++)
|
||||
{
|
||||
@@ -483,6 +484,9 @@ function _booking_email_get_default_selection_callback($form, $form_state) {
|
||||
if ($selection == 'bookedin' && $person->booking_status == 1) {
|
||||
$defaults[] = $person->nid;
|
||||
}
|
||||
elseif ($selection == 'test' && $person->booking_lastname == 'Coad') {
|
||||
$defaults[] = $person->nid;
|
||||
}
|
||||
}
|
||||
//set return value via drupal_json_encode($var)
|
||||
$replacementform_data['booking-email-default-ids'] = array (
|
||||
|
Reference in New Issue
Block a user