/[drupal]/contributions/modules/simplenews/simplenews_handler_field_newsletter_s_status.inc
ViewVC logotype

Contents of /contributions/modules/simplenews/simplenews_handler_field_newsletter_s_status.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Fri Jan 2 12:01:17 2009 UTC (10 months, 3 weeks ago) by sutharsan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +6 -1 lines
File MIME type: text/x-php
Coder review.
1 <?php
2 // $Id: simplenews_handler_field_newsletter_s_status.inc,v 1.2 2008/11/02 15:30:13 sutharsan Exp $
3
4 /**
5 * @file
6 * Views handler for simplenews sent status.
7 */
8
9 /**
10 * Display newsletter sent status.
11 */
12 class simplenews_handler_field_newsletter_s_status extends views_handler_field {
13 function render($values) {
14 switch ($values->{$this->field_alias}) {
15 case SIMPLENEWS_STATUS_SEND_NOT:
16 default:
17 return t('Not sent');
18 case SIMPLENEWS_STATUS_SEND_PENDING:
19 return t('Pending');
20 case SIMPLENEWS_STATUS_SEND_READY:
21 return t('Sent');
22 }
23 }
24 }

  ViewVC Help
Powered by ViewVC 1.1.2