You are here

function simplenews_handler_field_newsletter_status::render in Simplenews 7

Render the field.

Parameters

array $values: The values retrieved from the database.

Overrides views_handler_field::render

File

includes/views/handlers/simplenews_handler_field_newsletter_status.inc, line 12
Views handler for simplenews sent status.

Class

simplenews_handler_field_newsletter_status
Display newsletter sent status.

Code

function render($values) {
  switch ($values->{$this->field_alias}) {
    case SIMPLENEWS_STATUS_SEND_NOT:
    default:
      return t('Not sent');
    case SIMPLENEWS_STATUS_SEND_PENDING:
      return t('Pending');
    case SIMPLENEWS_STATUS_SEND_READY:
      return t('Sent');
  }
}