You are here

public function MaillogMailSystem::format in Maillog / Mail Developer 7

Format a message composed by drupal_mail() prior sending.

Parameters

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

Return value

string The formatted $message.

Overrides MailSystemInterface::format

File

includes/maillog.mail.inc, line 22
An interface for pluggable mail back-ends.

Class

MaillogMailSystem
An interface for pluggable mail back-ends.

Code

public function format(array $message) {
  $mailclass = variable_get('maillog_engine', 'DefaultMailSystem');
  $default = new $mailclass();
  return $default
    ->format($message);
}