move footer definition to theme call

This commit is contained in:
2017-07-01 22:51:42 +10:00
parent 627b1767e8
commit 4ad18bf7fd
3 changed files with 8 additions and 7 deletions

View File

@@ -342,6 +342,10 @@ function _booking_custom_email($nid, $email_type, $sender = 'contact') {
$message_body = isset($message_body['format']) ? $message_body['value'] : $message_body;
$message_body = token_replace($message_body, $tokens);
//get the footer text
$message_footer = variable_get('booking_html_mail_footer');
$message_footer = isset($message_footer['format']) ? $message_footer['value'] : $message_footer;
//Check if we should apply a HTML theme to the email text or just send a normal email
if(variable_get('booking_enable_html_mail', 0) == 1) {
$html_body = theme('booking_htmlmail_registration_mail',
@@ -350,6 +354,7 @@ function _booking_custom_email($nid, $email_type, $sender = 'contact') {
'key' => 'booking_email_custom',
'body' => $message_body,
'subject' => $subject,
'footer' => $message_footer,
));
watchdog('booking_debug', "<pre>HTML body themed\n@info</pre>", array('@info' => print_r($html_body, true)));
$params['body'] = $html_body;