accessibility_handler_status.inc

  1. cis7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  2. cle7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  3. ecd7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  4. elmsmedia7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  5. harmony7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  6. icor7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  7. meedjum_blog7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
  8. mooc7 sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc

Contains a Views field handler to take care of displaying the test status as fields.

Classes

File

sites/all/modules/ulmus/accessibility/views/accessibility_handler_status.inc
View source
  1. <?php
  2. /**
  3. * @file
  4. * Contains a Views field handler to take care of displaying the test status
  5. * as fields.
  6. */
  7. class accessibility_handler_status extends views_handler_field {
  8. function construct() {
  9. parent::construct();
  10. $this->additional_fields['status'] = 'status';
  11. }
  12. function option_definition() {
  13. $options = parent::option_definition();
  14. $options['text'] = array('default' => '', 'translatable' => TRUE);
  15. return $options;
  16. }
  17. function query() {
  18. $this->ensure_my_table();
  19. $this->add_additional_fields();
  20. }
  21. function render($values) {
  22. return ($values->{$this->aliases['status']}) ? t('Active') : t('Inactive');
  23. }
  24. }