function views_handler_field_node_comment::render
Same name in other branches
- 6.x-3.x modules/comment/views_handler_field_node_comment.inc \views_handler_field_node_comment::render()
Overrides views_handler_field::render
File
-
modules/
comment/ views_handler_field_node_comment.inc, line 18
Class
- views_handler_field_node_comment
- Display node comment status.
Code
public 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');
}
}