function views_handler_field_comment_node_link::construct in Views (for Drupal 7) 6.3
Same name and namespace in other branches
- 6.2 modules/comment/views_handler_field_comment_node_link.inc \views_handler_field_comment_node_link::construct()
- 7.3 modules/comment/views_handler_field_comment_node_link.inc \views_handler_field_comment_node_link::construct()
Construct a new field handler.
Overrides views_handler_field::construct
File
- modules/
comment/ views_handler_field_comment_node_link.inc, line 8
Class
- views_handler_field_comment_node_link
- Handler for showing comment module's node link.
Code
function construct() {
parent::construct();
// Add the node fields that comment_link will need..
$this->additional_fields['nid'] = array(
'field' => 'nid',
);
$this->additional_fields['type'] = array(
'field' => 'type',
);
$this->additional_fields['comment'] = array(
'field' => 'comment',
);
}