1 views_handler_field_node_comment.inc views_handler_field_node_comment::render($values)

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides views_handler_field::render

File

core/modules/comment/views/views_handler_field_node_comment.inc, line 13
Definition of views_handler_field_node_comment.

Class

views_handler_field_node_comment
Display node comment status.

Code

function render($values) {
  $value = $this->get_value($values);
  switch ($value) {
    case COMMENT_NODE_HIDDEN:
    default:
      return t('Hidden');
    case COMMENT_NODE_CLOSED:
      return t('Closed');
    case COMMENT_NODE_OPEN:
      return t('Open');
  }
}