add separate email for waiting list promotion fully paid
This commit is contained in:
@@ -390,7 +390,14 @@ function _booking_promoted_from_waitinglist_email($nid) {
|
||||
$params['headers']['Bcc'] = BOOKING_EMAIL_DEV_NOTIFY;
|
||||
}
|
||||
|
||||
$message_body = variable_get('booking_email_waitinglistpromotion');
|
||||
if ($tokens['payment-required'] == 0) {
|
||||
watchdog('booking_debug', 'This person has fully paid so sending Not sending promoted-from-waitinglist-fullypaid email.');
|
||||
$message_body = variable_get('booking_email_waitinglistpromotion_fullypaid');
|
||||
}
|
||||
else {
|
||||
$message_body = variable_get('booking_email_waitinglistpromotion');
|
||||
}
|
||||
|
||||
//Use the value of the field if it is an array from a HTML textarea
|
||||
$message_body = isset($message_body['format']) ? $message_body['value'] : $message_body;
|
||||
$message_body = token_replace($message_body, $tokens);
|
||||
|
Reference in New Issue
Block a user