Add travel info to booking node view
This commit is contained in:
@@ -114,7 +114,7 @@ function booking_admin() {
|
||||
$form['misc']['booking_auto_confirm_email'] = array (
|
||||
'#type' => 'radios',
|
||||
'#title' => t('Automatic Registration Email'),
|
||||
'#description' => t('Automatically send a confirmation email when a user registers for an event? (If No, email will be sent when status manually changed from Not Coming to Paid). Recommended to set this to Yes if "Show on lists once booked in" is set to No.'),
|
||||
'#description' => t('Automatically send a confirmation email when a user registers for an event? (If No, email will be sent when status changed from Not Coming to Paid, either manually or via paypal plugin). Recommended to set this to Yes if "Show on lists once booked in" is set to No and paypal is not being used.'),
|
||||
'#options' => array (0 => t('No'), t('Yes')),
|
||||
'#default_value' => variable_get('booking_auto_confirm_email', 0),
|
||||
);
|
||||
@@ -240,6 +240,7 @@ function booking_manual_email()
|
||||
$email_options_array['registration'] = 'Manual Registration';
|
||||
$email_options_array['balance'] = 'Manual Balance Outstanding';
|
||||
$email_options_array['complete'] = 'Manual Payment Complete';
|
||||
$email_options_array['travelcomplete'] = 'Manual Travel Form Complete';
|
||||
|
||||
//add in the custom email types
|
||||
for ($i = 1; $i <= CUSTOM_EMAIL_COUNT; $i++)
|
||||
@@ -336,7 +337,12 @@ function booking_manual_email_submit($form, &$form_state) {
|
||||
{
|
||||
watchdog('booking', 'Processing a manual registration complete email to id @info', array ('@info' => $key));
|
||||
_booking_registration_email($key, true, true);
|
||||
}
|
||||
}
|
||||
elseif ($form_state['values']['email-type'] == 'travelcomplete')
|
||||
{
|
||||
watchdog('booking', 'Processing a manual travelform complete email to id @info', array ('@info' => $key));
|
||||
_booking_travelform_confirmation_email($key);
|
||||
}
|
||||
elseif (strpos($form_state['values']['email-type'], 'custom') !== false)
|
||||
{
|
||||
watchdog('booking', 'Processing a @custom type email to id @info', array ('@custom' => $form_state['values']['email-type'], '@info' => $key));
|
||||
|
Reference in New Issue
Block a user