You are here

simplenews_handler_field_newsletter_s_status.inc in Simplenews 6.2

Views handler for simplenews sent status.

File

includes/views/simplenews_handler_field_newsletter_s_status.inc
View source
<?php

/**
 * @file
 * Views handler for simplenews sent status.
 */

/**
 * Display newsletter sent status.
 */
class simplenews_handler_field_newsletter_s_status extends views_handler_field {
  function render($values) {
    switch ($values->{$this->field_alias}) {
      case SIMPLENEWS_STATUS_SEND_PENDING:
        return t('Pending');
      case SIMPLENEWS_STATUS_SEND_READY:
        return t('Sent');
      case SIMPLENEWS_STATUS_SEND_NOT:
      default:
        return t('Not sent');
    }
  }

}

Classes

Namesort descending Description
simplenews_handler_field_newsletter_s_status Display newsletter sent status.