You are here

public function views_xml_backend_handler_filter::options_form in Views XML Backend 7

Same name and namespace in other branches
  1. 6 handlers/views_xml_backend_handler_filter.inc \views_xml_backend_handler_filter::options_form()

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_filter::options_form

File

handlers/views_xml_backend_handler_filter.inc, line 134
Contains views_xml_backend_handler_filter.

Class

views_xml_backend_handler_filter
Base filter handler for views_xml_backend.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['xpath_selector'] = array(
    '#type' => 'textfield',
    '#title' => 'XPath selector',
    '#description' => t('The field name in the table that will be used as the filter.'),
    '#default_value' => $this->options['xpath_selector'],
    '#required' => TRUE,
  );
}