You are here

public function InvoiceMailSystem::format in Commerce Invoice Receipt 7.2

Same name and namespace in other branches
  1. 7 includes/commerce_invoice_receipt.admin.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

./commerce_invoice_receipt.mailsystem.inc, line 21
Contains the mailsystem used by Commerce Invoice Receipt module.

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;
}