You are here

function simplenews_subscriber_status_list in Simplenews 8

Same name and namespace in other branches
  1. 8.2 simplenews.module \simplenews_subscriber_status_list()
  2. 3.x simplenews.module \simplenews_subscriber_status_list()

Returns the available options for the subscriber status.

1 string reference to 'simplenews_subscriber_status_list'
simplenews_field_views_data in ./simplenews.views.inc
Implements hook_field_views_data().

File

./simplenews.module, line 930
Simplenews node handling, sent email, newsletter block and general hooks

Code

function simplenews_subscriber_status_list() {
  return array(
    SIMPLENEWS_SUBSCRIPTION_STATUS_SUBSCRIBED => t('Subscribed'),
    SIMPLENEWS_SUBSCRIPTION_STATUS_UNSUBSCRIBED => t('Unsubscribed'),
    SIMPLENEWS_SUBSCRIPTION_STATUS_UNCONFIRMED => t('Unconfirmed'),
  );
}