You are here

public function ForwardMailSystem::format in Forward 7.3

Same name and namespace in other branches
  1. 7 forward.module \ForwardMailSystem::format()
  2. 7.2 forward.module \ForwardMailSystem::format()

Concatenate and wrap the e-mail body.

Parameters

$message: A message array, as described in hook_mail_alter().

Return value

The formatted $message.

Overrides MailSystemInterface::format

File

./forward.mail.inc, line 23
forward.mail.inc Create a mail system that will send HTML emails

Class

ForwardMailSystem
Modify the drupal mail system to send HTML emails for the forward module.

Code

public function format(array $message) {
  $message['body'] = implode("\n\n", $message['body']);
  return $message;
}