function views_handler_filter::options_form

3.x views_handler_filter.inc views_handler_filter::options_form(&$form, &$form_state)
2.x views_handler_filter.inc views_handler_filter::options_form(&$form, &$form_state)

Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

Overrides views_handler::options_form

1 call to views_handler_filter::options_form()
views_handler_filter_string::options_form in handlers/views_handler_filter_string.inc
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
2 methods override views_handler_filter::options_form()
views_handler_filter_broken::options_form in handlers/views_handler_filter.inc
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.
views_handler_filter_string::options_form in handlers/views_handler_filter_string.inc
Provide the basic form which calls through to subforms. If overridden, it is best to call through to the parent, or to at least make sure all of the functions in this form are called.

File

handlers/views_handler_filter.inc, line 88

Class

views_handler_filter
Base class for filters.

Code

function options_form(&$form, &$form_state) {
  if ($this->can_expose()) {
    $this->show_expose_button($form, $form_state);
  }
  $form['op_val_start'] = array('#value' => '<div class="clear-block">');
  $this->show_operator_form($form, $form_state);
  $this->show_value_form($form, $form_state);
  $form['op_val_end'] = array('#value' => '</div>');
  if ($this->can_expose()) {
    $this->show_expose_form($form, $form_state);
  }
}