You are here

function simplenews_get_priority in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_get_priority()
  2. 8 simplenews.module \simplenews_get_priority()
  3. 6.2 includes/simplenews.admin.inc \simplenews_get_priority()
  4. 7.2 simplenews.module \simplenews_get_priority()
  5. 7 includes/simplenews.admin.inc \simplenews_get_priority()

Function to provide the various simplenews mail priorities for newsletters.

2 calls to simplenews_get_priority()
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 743
Simplenews node handling, sent email, newsletter block and general hooks.

Code

function simplenews_get_priority() {
  return [
    SIMPLENEWS_PRIORITY_NONE => t('- None -'),
    SIMPLENEWS_PRIORITY_HIGHEST => t('Highest'),
    SIMPLENEWS_PRIORITY_HIGH => t('High'),
    SIMPLENEWS_PRIORITY_NORMAL => t('Normal'),
    SIMPLENEWS_PRIORITY_LOW => t('Low'),
    SIMPLENEWS_PRIORITY_LOWEST => t('Lowest'),
  ];
}