You are here

function geolocation_proximity_views_handler_field_distance::exposed_submit in Geolocation Proximity 7.2

Submit the exposed handler form.

Overrides views_handler::exposed_submit

File

handlers/geolocation_proximity_views_handler_field_distance.inc, line 184
Definition of geolocation_proximity_views_handler_field_distance.

Class

geolocation_proximity_views_handler_field_distance
Distance field handler for views.

Code

function exposed_submit(&$form, &$form_state) {
  if (!$this
    ->can_expose()) {
    return;
  }
  $field_id = $this->geolocation_proximity_field_id;
  $this->options['location']['latitude'] = $form_state['values'][$this->field_alias]['latitude'];
  $this->options['location']['longitude'] = $form_state['values'][$this->field_alias]['longitude'];
}