more debugging

This commit is contained in:
2016-05-31 18:34:53 +10:00
parent aec30aabd2
commit a82e6baa42
3 changed files with 4 additions and 5 deletions

View File

@@ -256,12 +256,11 @@ function _booking_custom_email($nid, $email_type, $sender = 'contact')
'!email' => variable_get('booking_contact_email', variable_get('site_mail', ini_get('sendmail_from')))
));
} elseif ($sender == 'logistics') {
//watchdog('booking', 'Sending a custom email from the logistics email address.');
//calculate the drupal variables to use
$email_subject_variable = 'booking_email_logistics_subject_' . $email_type;
$email_body_variable = 'booking_email_logistics_' . $email_type;
watchdog('booking_debug', "<pre>Custom logistics email\n@subject\n@body</pre>",
array('@subject' => $email_subject_variable, '@body' => $email_body_variable));
//watchdog('booking_debug', "<pre>Custom logistics email\n@subject\n@body</pre>",
// array('@subject' => $email_subject_variable, '@body' => $email_body_variable));
//calculate the from email address for a logistics email
$from = t('!event Registrations <!email>', array('!event' => $event->booking_eventname,
'!email' => variable_get('booking_logistics_email', variable_get('site_mail', ini_get('sendmail_from')))