function views_handler_field_node_comment::render
Same name in other branches
- 7.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 9
Class
- views_handler_field_node_comment
- Display node comment status.
Code
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');
}
}