You are here

function simplenews_get_priority in Simplenews 7.2

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 includes/simplenews.admin.inc \simplenews_get_priority()
  5. 3.x simplenews.module \simplenews_get_priority()

Function to provide the various simplenews mail priorities for newsletters.

2 calls to simplenews_get_priority()
simplenews_admin_newsletter_form in includes/simplenews.admin.inc
Menu callback: newsletter admin form for newsletter add/edit.
simplenews_admin_settings_newsletter in includes/simplenews.admin.inc
Menu callback: Simplenews admin settings - Newsletter.
1 string reference to 'simplenews_get_priority'
SimplenewsNewsletterMetadataController::entityPropertyInfo in includes/simplenews.info.inc
Overrides EntityDefaultMetadataController::entityPropertyInfo().

File

./simplenews.module, line 2208
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'),
  );
}