Commit 40519f28 authored by amitaibu's avatar amitaibu

Pass the message entity along to hook_drupal_mail().

parent e691621d
......@@ -35,6 +35,9 @@ class MessageNotifierEmail extends MessageNotifierBase {
// The subject in an email can't be with HTML, so strip it.
$output['message_notify_email_subject'] = strip_tags($output['message_notify_email_subject']);
// Pass the message entity along to hook_drupal_mail().
$output['message_entity'] = $message;
return drupal_mail('message_notify', $message->type, $mail, $lang, $output);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment