public function webform_handler_field_submission_count::construct in Webform 7.3
Same name and namespace in other branches
- 6.3 views/webform_handler_field_submission_count.inc \webform_handler_field_submission_count::construct()
- 7.4 views/webform_handler_field_submission_count.inc \webform_handler_field_submission_count::construct()
Construct a new field handler.
Overrides views_handler_field::construct
File
- views/
webform_handler_field_submission_count.inc, line 16 - Views handler to display the number of submissions in a webform.
Class
- webform_handler_field_submission_count
- Field handler to present the submission count of a node to the user.
Code
public function construct() {
parent::construct();
$this->count_type = $this->definition['count_type'];
if ($this->count_type == 'node') {
$this->additional_fields['nid'] = 'nid';
$this->additional_fields['type'] = 'type';
}
elseif ($this->count_type == 'users') {
$this->additional_fields['uid'] = 'uid';
}
}