You are here

function simplenews_new_account_options in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_new_account_options()
  2. 8 simplenews.module \simplenews_new_account_options()
  3. 7.2 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 757
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'),
  ];
}