remove debug messages for html email
This commit is contained in:
@@ -917,7 +917,7 @@ function booking_mail($key, &$message, $params) {
|
||||
$message['headers'] += $params['headers'];
|
||||
}
|
||||
|
||||
watchdog('booking_debug', "<pre>Mail hook:\n@info</pre>", array('@info' => print_r( $message, true)));
|
||||
//watchdog('booking_debug', "<pre>Mail hook:\n@info</pre>", array('@info' => print_r( $message, true)));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -928,8 +928,7 @@ function booking_mail_alter(&$message) {
|
||||
$implemented_message_ids = array('booking_registration_mail', 'booking_registration_mail_notify', 'booking_booking_email_custom', 'booking_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.");
|
||||
//watchdog('booking_debug', "Message key matched in booking_mail_alter, setting to html email.");
|
||||
$headers = array(
|
||||
'MIME-Version' => '1.0',
|
||||
'Content-Type' => 'text/html; charset=UTF-8; format=flowed',
|
||||
@@ -949,7 +948,7 @@ function booking_mail_alter(&$message) {
|
||||
foreach($headers as $key => $value) {
|
||||
$message['headers'][$key] = $value;
|
||||
}
|
||||
watchdog('booking_debug', "<pre>Mail alter hook:\n@info</pre>", array('@info' => print_r( $message, true)));
|
||||
//watchdog('booking_debug', "<pre>Mail alter hook:\n@info</pre>", array('@info' => print_r( $message, true)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user