function simplenews_get_priority in Simplenews 8
Same name and namespace in other branches
- 8.2 simplenews.module \simplenews_get_priority()
- 6.2 includes/simplenews.admin.inc \simplenews_get_priority()
- 7.2 simplenews.module \simplenews_get_priority()
- 7 includes/simplenews.admin.inc \simplenews_get_priority()
- 3.x simplenews.module \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 893 - Simplenews node handling, sent email, newsletter block and general hooks
Code
function simplenews_get_priority() {
return array(
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'),
);
}