add mail footer for HTML email

This commit is contained in:
2017-07-01 22:41:51 +10:00
parent 2c20f04a1d
commit 0fd7f95baf
3 changed files with 21 additions and 3 deletions

View File

@@ -855,6 +855,10 @@ function booking_theme($existing, $type, $theme, $path) {
// if our more heavily customised template exists, use that, otherwise fall back to the generic one
$template_file = is_file($theme_path . '/mimemail-message-registration_mail.tpl.php') ? '/mimemail-message-registration_mail' : '/mimemail-message';
//get the footer text
$message_footer = variable_get('booking_html_mail_footer');
$message_footer = isset($message_footer['format']) ? $message_footer['value'] : $message_footer;
return array(
'booking_details' => array('arguments' => array('node' => NULL)),
'booking_htmlmail_template' => array(
@@ -863,7 +867,7 @@ function booking_theme($existing, $type, $theme, $path) {
'template' => 'mimemail-message' // extension of .tpl.php automatically added
),
'booking_htmlmail_registration_mail' => array(
'variables' => array('subject' => NULL, 'body' => NULL),
'variables' => array('subject' => NULL, 'body' => NULL, 'footer' => $message_footer),
'path' => $theme_path,
'image_path' => drupal_get_path('module', 'booking'). '/images',
'template' => $template_file,