You are here

public function InvoiceMailSystem::format in Commerce Invoice Receipt 7

Same name and namespace in other branches
  1. 7.2 commerce_invoice_receipt.mailsystem.inc \InvoiceMailSystem::format()

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

includes/commerce_invoice_receipt.admin.inc, line 92

Class

InvoiceMailSystem
Modify the drupal mail system to send HTML emails.

Code

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