public function views_geojson_bbox_argument::default_argument_form in Views GeoJSON 7
Same name and namespace in other branches
- 6 views/views_geojson_bbox_argument.inc \views_geojson_bbox_argument::default_argument_form()
Override the default argument form.
Overrides views_handler_argument::default_argument_form
File
- views/
views_geojson_bbox_argument.inc, line 15
Class
- views_geojson_bbox_argument
- Custom filter to return only points within a provided bounding box.
Code
public function default_argument_form(&$form, &$form_state) {
parent::default_argument_form($form, $form_state);
// Clarify this, since we're treating pulling from the query string as
// different than a normal arg.
$form['no_argument']['#title'] = 'When the filter value is NOT in the URL <em>as a normal Drupal argument</em>';
$form['empty_result'] = array(
'#type' => 'checkbox',
'#title' => t('Empty result on missing bounding box value'),
'#description' => t('When the argument is not found you may choose to show no result.'),
'#default_value' => $this->options['empty_result'],
);
}