You are here

public function MailsystemDelegateMailSystem::format in Mail System 7.3

Implements MailSystemInterface::format().

Retrieve the configured class responsible for formatting a message of a given module and mail-key. Forwards the formatting to that class.

Overrides MailSystemInterface::format

File

./MailsystemDelegateMailSystem.inc, line 19
Class for formatting and actually sending a message.

Class

MailsystemDelegateMailSystem
A mailsystem delegate implementation that forwards to another implementation.

Code

public function format(array $message) {
  $module = $message['module'];
  $key = $message['key'];
  $mailsystem = _mailsystem_delegate_get_mailsystem($module, $key, 'format');
  return $mailsystem
    ->format($message);
}