You are here

public function location_views_handler_filter_proximity::expose_form_left in Location 7.3

Same name and namespace in other branches
  1. 6.3 handlers/location_views_handler_filter_proximity.inc \location_views_handler_filter_proximity::expose_form_left()
  2. 7.5 handlers/location_views_handler_filter_proximity.inc \location_views_handler_filter_proximity::expose_form_left()
  3. 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 76
General proximity filter for location latitude/longitude.

Class

location_views_handler_filter_proximity

Code

public 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."),
  );
}