You are here

views_handler_field_last_comment_timestamp.inc in Views (for Drupal 7) 6.2

File

modules/comment/views_handler_field_last_comment_timestamp.inc
View source
<?php

class views_handler_field_last_comment_timestamp extends views_handler_field_date {
  function construct() {
    parent::construct();
    $this->additional_fields['comment_count'] = 'comment_count';
  }
  function render($values) {
    if (empty($this->options['empty_zero']) || $values->{$this->aliases['comment_count']}) {
      return parent::render($values);
    }
    else {
      return NULL;
    }
  }

}