You are here

public function views_plugin_argument_default_bboxquery::options_form in Views GeoJSON 7

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

Provide the default form for setting options.

Overrides views_plugin_argument_default::options_form

File

views/views_plugin_argument_default_bboxquery.inc, line 53
Contains the BBOX query string argument default plugin.

Class

views_plugin_argument_default_bboxquery
The BBOX query string argument default handler.

Code

public function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['info'] = array(
    '#markup' => '<p class="description">Attempt to pull bounding box info
      directly from the query string, bypassing Drupal\'s normal argument
      handling. If the argument does not exist, all values will be shown.</p>',
  );
  $form['arg_id'] = array(
    '#type' => 'textfield',
    '#title' => t('Query argument ID'),
    '#size' => 60,
    '#maxlength' => 64,
    '#default_value' => $this->options['arg_id'] ? $this->options['arg_id'] : t('bbox'),
    '#description' => t('The ID of the query argument.<br />For OpenLayers use <em>bbox</em>, (as in "<em>?bbox=left,bottom,right,top</em>".)'),
  );
}