1 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

core/modules/comment/views/views_handler_field_comment_node_link.inc, line 13
Definition of views_handler_field_comment_node_link.

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