You are here

views_handler_field_node_comment.inc in Views (for Drupal 7) 6.3

File

modules/comment/views_handler_field_node_comment.inc
View source
<?php

/**
 * Display node comment status.
 *
 * @ingroup views_field_handlers
 */
class views_handler_field_node_comment extends views_handler_field {
  function render($values) {
    $value = $this
      ->get_value($values);
    switch ($value) {
      case COMMENT_NODE_DISABLED:
      default:
        return t('Disabled');
      case COMMENT_NODE_READ_ONLY:
        return t('Read only');
      case COMMENT_NODE_READ_WRITE:
        return t('Read/Write');
    }
  }

}

Classes

Namesort descending Description
views_handler_field_node_comment Display node comment status.