simplenews_handler_field_category_opt_inout.inc 462 B

1234567891011121314151617181920
  1. <?php
  2. /**
  3. * @file
  4. * Views field handler for simplenews_category.opt_inout.
  5. */
  6. /**
  7. * Provide translatable simplenews_category.opt_inout Options.
  8. */
  9. class simplenews_handler_field_category_opt_inout extends views_handler_field {
  10. function render($values) {
  11. $opt = array(
  12. 'hidden' => t('Hidden'),
  13. 'single' => t('Single opt-in'),
  14. 'double' => t('Double opt-in'),
  15. );
  16. return check_plain($opt[$values->{$this->field_alias}]);
  17. }
  18. }