add emails types to hook
This commit is contained in:
@@ -877,7 +877,10 @@ function booking_mail($key, &$message, $params) {
|
||||
*/
|
||||
function booking_mail_alter(&$message) {
|
||||
// $message['id'] comes from {module_name}_{email_key}
|
||||
if($message['id'] == 'booking_registration_mail') {
|
||||
$implemented_message_ids = array('booking_registration_mail', 'booking_email_custom', 'registration_mail_bal_outstanding');
|
||||
|
||||
if (in_array($message['id'], $implemented_message_ids)) {
|
||||
//if($message['id'] == 'booking_registration_mail') {
|
||||
watchdog('booking_debug', "Message key matched in booking_mail_alter, setting to html email.");
|
||||
$headers = array(
|
||||
'MIME-Version' => '1.0',
|
||||
|
Reference in New Issue
Block a user