You are here

public function CommerceMailSystem::format in Commerce Email 7

Concatenate and wrap the e-mail body for plain-text mails.

Parameters

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

Return value

The formatted $message.

Overrides MailSystemInterface::format

File

./commerce_email.module, line 629
Defines additional menu item and order html email functonality.

Class

CommerceMailSystem
Modify the drupal mail system to send HTML emails.

Code

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