function _simplenews_format_options in Simplenews 6
Same name and namespace in other branches
- 5 simplenews.module \_simplenews_format_options()
- 6.2 simplenews.module \_simplenews_format_options()
Determine possible mail format options.
The mime_mail module must be installed to send HTML mails.
2 calls to _simplenews_format_options()
- simplenews_admin_settings_newsletter in ./
simplenews.admin.inc - Menu callback: Simplenews admin settings - Newsletter.
- simplenews_form_alter in ./
simplenews.module - Implementation of hook_form_alter().
File
- ./
simplenews.module, line 2348 - Simplnews 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;
}