You are here

function simplenews_subscriber_status_list in Simplenews 8.2

Same name and namespace in other branches
  1. 8 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'
SubscriberViewsData::getViewsData in src/SubscriberViewsData.php
Returns views data for the entity type.

File

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

Code

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