debugging
This commit is contained in:
@@ -47,6 +47,7 @@ function _booking_registration_email($nid, $balance_payment, $manual = false) {
|
||||
'body' => _booking_registration_email_generate($node, $waiting_list, $balance_payment, $manual),
|
||||
)
|
||||
));
|
||||
watchdog('booking_debug', "<pre>HTML body themed\n@info</pre>", array('@info' => print_r($html_body, true)));
|
||||
$params['body'] = $html_body;
|
||||
|
||||
if (variable_get('booking_bcc_notify_email_workflow', 0) == 1) {
|
||||
@@ -137,7 +138,7 @@ function _booking_regn_notifyonly_email($node, $balance_payment) {
|
||||
|
||||
//Use the value of the field if it is an array from a HTML textarea
|
||||
$body = isset($body['format']) ? $body['value'] : $body;
|
||||
watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $body, true)));
|
||||
//watchdog('booking_debug', "<pre>Email generation:\n@info</pre>", array('@info' => print_r( $body, true)));
|
||||
//$contact_message .= "\n\n" . t("!details", array('!details' => _booking_details_email_summary($node)));
|
||||
return token_replace($body, $tokens);
|
||||
|
||||
|
@@ -877,6 +877,7 @@ 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') {
|
||||
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',
|
||||
|
Reference in New Issue
Block a user