function mailsystem_mail_alter in Mail System 6
Same name and namespace in other branches
- 6.2 mailsystem.module \mailsystem_mail_alter()
Formats a message with the appropriate MailSystemInterface class method.
Creates an instance of the MailSystemInterface class appropriate to the $message['id'] and invokes its format() method on the message array.
Parameters
&$message: The message array to be altered.
File
- ./
mailsystem.module, line 135 - Provide UI for controlling the mail_system variable.
Code
function mailsystem_mail_alter(&$message) {
mailsystem_parse_id($message);
$mailsystem = drupal_mail_system($message['module'], $message['key']);
$message = $mailsystem
->format($message);
}