views_handler_field_node_comment.inc

  1. 3.x modules/comment/views_handler_field_node_comment.inc
  2. 2.x modules/comment/views_handler_field_node_comment.inc

File

modules/comment/views_handler_field_node_comment.inc
View source
  1. <?php
  2. /**
  3. * Display node comment status
  4. */
  5. class views_handler_field_node_comment extends views_handler_field {
  6. function render($values) {
  7. switch ($values->{$this->field_alias}) {
  8. case COMMENT_NODE_DISABLED:
  9. default:
  10. return t('Disabled');
  11. case COMMENT_NODE_READ_ONLY:
  12. return t('Read only');
  13. case COMMENT_NODE_READ_WRITE:
  14. return t('Read/Write');
  15. }
  16. }
  17. }