public function views_handler_field_node_new_comments::construct in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 6.3 modules/comment/views_handler_field_node_new_comments.inc \views_handler_field_node_new_comments::construct()
- 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',
);
}