You are here

function mailsystem_admin_get_mail_modules in Mail System 7.3

Retrieves a list of modules implementing hook_mail().

Return value

array An associative array of module descriptions keyed by the corresponding module machine name.

1 call to mailsystem_admin_get_mail_modules()
mailsystem_admin_settings in ./mailsystem.admin.inc
Form constructor for the mailsystem settings form.

File

./mailsystem.admin.inc, line 249
Administrative interface for the mail_system variable.

Code

function mailsystem_admin_get_mail_modules() {
  $modules = module_implements('mail');
  $result = array();
  foreach ($modules as $module) {
    $info = system_get_info('module', $module);
    $description = empty($info['package']) ? t('Other') : $info['package'];
    $description .= ' » ' . $info['name'];
    $result[$module] = $description;
  }
  return $result;
}