public function SendGridMailSystem::format in SendGrid Integration 7
Email formatting, example strip away html.
Parameters
array $message:
Return value
array
Overrides MailSystemInterface::format
File
- inc/
sendgrid.mail.inc, line 16 - Implements Drupal MailSystemInterface.
Class
- SendGridMailSystem
- @file Implements Drupal MailSystemInterface.
Code
public function format(array $message) {
// Join message array.
$message['body'] = implode("\n\n", $message['body']);
return $message;
}