function views_handler_field_node_comment::render
3.x views_handler_field_node_comment.inc | views_handler_field_node_comment::render($values) |
2.x 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
- modules/
comment/ views_handler_field_node_comment.inc, line 7
Class
- views_handler_field_node_comment
- Display node comment status
Code
function render($values) {
switch ($values->{$this->field_alias}) {
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');
}
}