You are here

function simplenews_new_account_options in Simplenews 8.2

Same name and namespace in other branches
  1. 8 simplenews.module \simplenews_new_account_options()
  2. 7.2 simplenews.module \simplenews_new_account_options()
  3. 3.x simplenews.module \simplenews_new_account_options()

Returns a list of options for the new account settings.

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

File

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

Code

function simplenews_new_account_options() {
  return [
    'none' => t('- None -'),
    'on' => t('Default on'),
    'off' => t('Default off'),
    'silent' => t('Silent'),
  ];
}