You are here

function mailsystem_default_methods in Mail System 6.2

Same name and namespace in other branches
  1. 8.2 mailsystem.module \mailsystem_default_methods()
  2. 7.2 mailsystem.module \mailsystem_default_methods()

Returns the default list of MailSystemInterface methods.

Return value

An array whose keys are the names of the methods defined by MailSystemInterface and whose values are the default class used to provide that method.

1 call to mailsystem_default_methods()
mailsystem_create_class in ./mailsystem.module
Creates and registers a new MailSystemInterface class.

File

./mailsystem.module, line 91
Provide UI for controlling the mail_system variable.

Code

function mailsystem_default_methods() {
  $mail_system = mailsystem_get();
  $default_class = $mail_system[mailsystem_default_id()];
  $methods = get_class_methods('MailSystemInterface');
  return array_combine($methods, array_fill(0, count($methods), $default_class));
}