1 views_handler_field_node_new_comments.inc | views_handler_field_node_new_comments::render($values) |
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field_numeric::render
File
- core/
modules/ comment/ views/ views_handler_field_node_new_comments.inc, line 105 - Definition of views_handler_field_node_new_comments.
Class
- views_handler_field_node_new_comments
- Field handler to display the number of new comments.
Code
function render($values) {
$value = $this->get_value($values);
if (!empty($value)) {
return $this->render_link(parent::render($values), $values);
}
else {
$this->options['alter']['make_link'] = FALSE;
}
}