You are here

function simplenews_format_options in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_format_options()
  2. 8 simplenews.module \simplenews_format_options()
  3. 7.2 simplenews.module \simplenews_format_options()
  4. 7 simplenews.module \simplenews_format_options()

Returns simplenews format options.

2 calls to simplenews_format_options()
NewsletterForm::form in src/Form/NewsletterForm.php
Overrides Drupal\Core\Entity\EntityForm::form().
NewsletterSettingsForm::buildForm in src/Form/NewsletterSettingsForm.php
Form constructor.

File

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

Code

function simplenews_format_options() {
  return [
    'plain' => t('Plain'),
    'html' => t('HTML'),
  ];
}