function geolocation_proximity_views_handler_field_distance::exposed_form in Geolocation Proximity 7.2
Render our chunk of the exposed handler form when selecting
Overrides views_handler::exposed_form
File
- handlers/
geolocation_proximity_views_handler_field_distance.inc, line 143 - Definition of geolocation_proximity_views_handler_field_distance.
Class
- geolocation_proximity_views_handler_field_distance
- Distance field handler for views.
Code
function exposed_form(&$form, &$form_state) {
$field_id = $this->geolocation_proximity_field_id;
$form[$this->field_alias] = array(
'#tree' => TRUE,
'#title' => $this->options['label'],
'#type' => 'item',
);
$form[$this->field_alias]['latitude'] = array(
'#type' => 'textfield',
'#title' => t('Latitude'),
'#required' => TRUE,
'#default_value' => $this->options['location']['latitude'],
'#weight' => 1,
);
$form[$this->field_alias]['longitude'] = array(
'#type' => 'textfield',
'#title' => t('Longitude'),
'#required' => TRUE,
'#default_value' => $this->options['location']['longitude'],
'#weight' => 2,
);
}