simplenews_handler_field_category_new_account.inc 494 B

123456789101112131415161718192021
  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_new_account extends views_handler_field {
  10. function render($values) {
  11. $opt = array(
  12. 'none' => t('None'),
  13. 'on' => t('Default on'),
  14. 'off' => t('Default off'),
  15. 'silent' => t('invisible Subscrition'),
  16. );
  17. return check_plain($opt[$values->{$this->field_alias}]);
  18. }
  19. }