You are here

function _simplenews_format_options in Simplenews 5

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

Helper function to determine possible mail format options. The mimemodule module must be installed to send HTML mails.

2 calls to _simplenews_format_options()
simplenews_admin_settings in ./simplenews.module
Generate settings form.
simplenews_form in ./simplenews.module
Implementation of hook_form().

File

./simplenews.module, line 2758

Code

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