function views_handler_field_node_comment::render in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/comment/views_handler_field_node_comment.inc \views_handler_field_node_comment::render()
- 7.3 modules/comment/views_handler_field_node_comment.inc \views_handler_field_node_comment::render()
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 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');
}
}