simplenews_handler_field_newsletter_s_status.inc in Simplenews 6
Views handler for simplenews sent status.
File
simplenews_handler_field_newsletter_s_status.incView 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_NOT:
default:
return t('Not sent');
case SIMPLENEWS_STATUS_SEND_PENDING:
return t('Pending');
case SIMPLENEWS_STATUS_SEND_READY:
return t('Sent');
}
}
}
Classes
Name | Description |
---|---|
simplenews_handler_field_newsletter_s_status | Display newsletter sent status. |