You are here

function simplenews_opt_inout_options in Simplenews 8

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_opt_inout_options()
  2. 7.2 simplenews.module \simplenews_opt_inout_options()

Returns the available options for the opt_inout newsletter property.

1 call to simplenews_opt_inout_options()
NewsletterForm::form in src/Form/NewsletterForm.php
Overrides Drupal\Core\Entity\EntityForm::form().

File

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

Code

function simplenews_opt_inout_options() {
  return array(
    SIMPLENEWS_OPT_INOUT_HIDDEN => t('Hidden'),
    SIMPLENEWS_OPT_INOUT_SINGLE => t('Single'),
    SIMPLENEWS_OPT_INOUT_DOUBLE => t('Double'),
  );
}