commiting uncommited changes on live site
[weblabels.fsf.org.git] / crm.fsf.org / 20131203 / files / sites / all / modules-new / views / modules / comment / views_handler_field_last_comment_timestamp.inc
1 <?php
2
3 /**
4 * @file
5 * Definition of views_handler_field_last_comment_timestamp.
6 */
7
8 /**
9 * Field handler to display the timestamp of a comment with the count of comments.
10 *
11 * @ingroup views_field_handlers
12 */
13 class views_handler_field_last_comment_timestamp extends views_handler_field_date {
14 function construct() {
15 parent::construct();
16 $this->additional_fields['comment_count'] = 'comment_count';
17 }
18
19 function render($values) {
20 $comment_count = $this->get_value($values, 'comment_count');
21 if (empty($this->options['empty_zero']) || $comment_count) {
22 return parent::render($values);
23 }
24 else {
25 return NULL;
26 }
27 }
28 }