function location_views_handler_filter_proximity::expose_form_left in Location 7.5
Same name and namespace in other branches
- 6.3 handlers/location_views_handler_filter_proximity.inc \location_views_handler_filter_proximity::expose_form_left()
- 7.3 handlers/location_views_handler_filter_proximity.inc \location_views_handler_filter_proximity::expose_form_left()
- 7.4 handlers/location_views_handler_filter_proximity.inc \location_views_handler_filter_proximity::expose_form_left()
File
- handlers/
location_views_handler_filter_proximity.inc, line 56
Class
- location_views_handler_filter_proximity
- General proximity filter for location latitude/longitude.
Code
function expose_form_left(&$form, &$form_state) {
parent::expose_form_left($form, $form_state);
// @@@ Todo: autohide this.
$form['expose']['gmap_macro'] = array(
'#parents' => array(
'options',
'gmap_macro',
),
'#type' => 'textfield',
'#title' => t('GMap macro'),
'#description' => t('The macro to use for the Latitude / Longitude map, if applicable.'),
'#default_value' => $this->options['expose']['gmap_macro'],
);
$form['expose']['user_location_choose'] = array(
'#type' => 'checkbox',
'#title' => t("Allow choice of user location"),
'#default_value' => $this->options['expose']['user_location_choose'],
'#description' => t("If checked and using a user location origin, the user will be able to choose which of their locations to use. Otherwise their first location will be used."),
);
}