You are here

public function views_handler_field_node_new_comments::construct in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 6.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::construct()
  2. 6.2 modules/comment/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

modules/comment/views_handler_field_node_new_comments.inc, line 31
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

public 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',
  );
}