1 views_handler_field_node_new_comments.inc views_handler_field_node_new_comments::construct()

Construct a new field handler.

Overrides views_handler_field::construct

File

core/modules/comment/views/views_handler_field_node_new_comments.inc, line 24
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 construct() {
  parent::construct();
  $this->additional_fields['nid'] = 'nid';
  $this->additional_fields['type'] = 'type';
  $this->additional_fields['comment_count'] = array('table' => 'node_comment_statistics', 'field' => 'comment_count');
}