You are here

function views_toggle_filter_handler::accept_exposed_input in Views Toggle Filter 7

Check to see if input from the exposed filters should change the behavior.

Overrides views_handler_filter::accept_exposed_input

File

views/views_toggle_filter_handler.inc, line 159
Definition of views_toggle_filter_handler.

Class

views_toggle_filter_handler
Views Toggle Filter handler.

Code

function accept_exposed_input($input) {
  if (!empty($this->options['expose']['identifier'])) {
    if (isset($input[$this->options['expose']['identifier']])) {
      $this->value = $input[$this->options['expose']['identifier']];
    }
  }
  return TRUE;
}