1 views_handler_filter_boolean_operator.inc views_handler_filter_boolean_operator::construct()

Views handlers use a special construct function so that we can more easily construct them with variable arguments.

Overrides views_object::construct

File

core/modules/views/handlers/views_handler_filter_boolean_operator.inc, line 31
Definition of views_handler_filter_boolean_operator.

Class

views_handler_filter_boolean_operator
Simple filter to handle matching of boolean values

Code

function construct() {
  $this->value_value = t('True');
  if (isset($this->definition['label'])) {
    $this->value_value = $this->definition['label'];
  }
  if (isset($this->definition['accept null'])) {
    $this->accept_null = (bool) $this->definition['accept null'];
  }
  elseif (isset($this->definition['accept_null'])) {
    $this->accept_null = (bool) $this->definition['accept_null'];
  }
  $this->value_options = NULL;
  parent::construct();
}