You are here

function simplenews_get_priority in Simplenews 7

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. 3.x simplenews.module \simplenews_get_priority()

Function to provide the various simplenews mail priorities for newsletter categories

4 calls to simplenews_get_priority()
simplenews_admin_category_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.
simplenews_handler_field_newsletter_priority::render in includes/views/handlers/simplenews_handler_field_newsletter_priority.inc
Render the field.
simplenews_handler_filter_newsletter_priority::get_value_options in includes/views/handlers/simplenews_handler_filter_newsletter_priority.inc
Child classes should be used to override this function and set the 'value options', unless 'options callback' is defined as a valid function or static public method to generate these values.

File

includes/simplenews.admin.inc, line 1817
Newsletter admin, subscription admin, simplenews settings

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'),
  );
}