You are here

function mailsystem_init in Mail System 7.2

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

Implements hook_init().

Caches the list of MailSystemInterface classes, and removes classes from the mail_system variable which are no longer available.

See also

mailsystem_get_classes()

File

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

Code

function mailsystem_init() {
  mailsystem_get_classes();

  // @todo Remove this when issue #299138 gets resolved.
  if (!function_exists('mailsystem_html_to_text')) {
    module_load_include('inc', 'mailsystem', 'html_to_text');
  }
}