function getlocations_fields_plugin_argument_default_bboxquery::options_form in Get Locations 7
Same name and namespace in other branches
- 7.2 modules/getlocations_fields/handlers/getlocations_fields_plugin_argument_default_bboxquery.inc \getlocations_fields_plugin_argument_default_bboxquery::options_form()
Provide the default form for setting options.
Overrides views_plugin_argument_default::options_form
File
- modules/
getlocations_fields/ handlers/ getlocations_fields_plugin_argument_default_bboxquery.inc, line 26 - getlocations_fields_plugin_argument_default_bboxquery.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Class
- getlocations_fields_plugin_argument_default_bboxquery
- Argument handler to accept bbox
Code
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 />Use <em>bbox</em>, (as in "<em>?bbox=left,bottom,right,top</em>".)<br />
<b>mapping logic:</b><br />
southWest.lng = left,
southWest.lat = bottom,
northEast.lng = right,
northEast.lat = top
'),
);
}