1 views_handler_field_last_comment_timestamp.inc | views_handler_field_last_comment_timestamp::render($values) |
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides views_handler_field_date::render
File
- core/
modules/ comment/ views/ views_handler_field_last_comment_timestamp.inc, line 18 - Definition of views_handler_field_last_comment_timestamp.
Class
- views_handler_field_last_comment_timestamp
- Field handler to display the timestamp of a comment with the count of comments.
Code
function render($values) {
$comment_count = $this->get_value($values, 'comment_count');
if (empty($this->options['empty_zero']) || $comment_count) {
return parent::render($values);
}
else {
return NULL;
}
}