You are here

function getlocations_fields_handler_filter_distance::expose_options in Get Locations 7

Same name and namespace in other branches
  1. 7.2 modules/getlocations_fields/handlers/getlocations_fields_handler_filter_distance.inc \getlocations_fields_handler_filter_distance::expose_options()

Provide default options for exposed filters.

Overrides views_handler_filter::expose_options

File

modules/getlocations_fields/handlers/getlocations_fields_handler_filter_distance.inc, line 77
getlocations_fields_handler_filter_distance.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

getlocations_fields_handler_filter_distance
General proximity filter for location latitude/longitude.

Code

function expose_options() {
  parent::expose_options();
  $this->options['expose']['search_units'] = array(
    'default' => 'km',
  );
  $this->options['expose']['search_distance'] = array(
    'default' => 10,
  );
  $this->options['expose']['search_field'] = array(
    'default' => '',
  );
}