You are here

function mailsystem_get in Mail System 8

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

Returns the current mail_system settings.

Return value

The contents of the mail_system variable merged with its defaults.

3 calls to mailsystem_get()
mailsystem_admin_settings in ./mailsystem.admin.inc
@file Administrative form for setting the mail_system variable.
mailsystem_clear in ./mailsystem.module
Helps other modules safely remove their settings from mail_system. This function should be called from the other module's hook_disable() function.
mailsystem_set in ./mailsystem.module
Helps other modules safely set their own key within mail_system. This function should be called from hook_enable() implementations.

File

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

Code

function mailsystem_get() {
  return array_merge(mailsystem_defaults(), variable_get('mail_system', mailsystem_defaults()));
}