You are here

function mailsystem_set in Mail System 8

Same name and namespace in other branches
  1. 8.2 mailsystem.module \mailsystem_set()
  2. 6.2 mailsystem.module \mailsystem_set()
  3. 6 mailsystem.module \mailsystem_set()
  4. 7.3 mailsystem.module \mailsystem_set()
  5. 7 mailsystem.module \mailsystem_set()
  6. 7.2 mailsystem.module \mailsystem_set()

Helps other modules safely set their own key within mail_system. This function should be called from hook_enable() implementations.

Parameters

$setting An associative array ($module => $classname) where $module: will be using $classname to send its mail, and:

  • $module is the machine-readable module name.
  • $classname is a class that implements MailSystemInterface.

File

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

Code

function mailsystem_set(array $setting) {
  variable_set('mail_system', array_merge(mailsystem_get(), $setting));
}