webform_handler_filter_is_draft.inc in Webform 7.4
File
views/webform_handler_filter_is_draft.inc
View source
<?php
class webform_handler_filter_is_draft extends views_handler_filter_in_operator {
public function get_value_options() {
if (!isset($this->value_options)) {
$this->value_title = t('Status');
$options = array(
'0' => t('Completed'),
'1' => t('Draft'),
);
$this->value_options = $options;
}
}
public function value_form(&$form, &$form_state) {
parent::value_form($form, $form_state);
$form['value']['#type'] = 'select';
}
}