You are here

function _simplenews_format_options in Simplenews 6.2

Same name and namespace in other branches
  1. 5 simplenews.module \_simplenews_format_options()
  2. 6 simplenews.module \_simplenews_format_options()

Determine possible mail format options.

Mime Mail or HTML Mail module must be installed to send HTML mails.

2 calls to _simplenews_format_options()
simplenews_admin_settings_newsletter in includes/simplenews.admin.inc
Menu callback: Simplenews admin settings - Newsletter.
simplenews_node_tab_send_form in ./simplenews.module
Simplenews tab form

File

./simplenews.module, line 2360
Simplenews node handling, sent email, newsletter block and general hooks

Code

function _simplenews_format_options() {
  $options = array(
    'plain' => t('plain'),
  );
  if (module_exists('mimemail') || module_exists('htmlmail')) {
    $options['html'] = t('html');
  }
  return $options;
}