You are here

public function webform_handler_field_submission_link::construct in Webform 7.3

Same name and namespace in other branches
  1. 6.3 views/webform_handler_field_submission_link.inc \webform_handler_field_submission_link::construct()
  2. 7.4 views/webform_handler_field_submission_link.inc \webform_handler_field_submission_link::construct()

Construct a new field handler.

Overrides views_handler_field::construct

File

views/webform_handler_field_submission_link.inc, line 17
Views handler to display links to a submission.

Class

webform_handler_field_submission_link
Field handler to present a link to the user.

Code

public function construct() {

  // We need to set this property before calling the construct() chain
  // as we use it in the option_definintion() call.
  $this->link_type = $this->definition['link_type'];
  parent::construct();
  $this->additional_fields['sid'] = 'sid';
  $this->additional_fields['nid'] = 'nid';
  $this->additional_fields['uid'] = 'uid';
  $this->additional_fields['node_uid'] = array(
    'table' => 'node',
    'field' => 'uid',
  );
}