You are here

function smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::exposed_form in Smart IP 6

Same name and namespace in other branches
  1. 6.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc \smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::exposed_form()
  2. 7.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc \smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::exposed_form()

Render our chunk of the exposed filter form when selecting

File

modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc, line 49

Class

smart_ip_views_bridge_openlayers_proximity_handler_filter_circle

Code

function exposed_form(&$form, &$form_state) {
  parent::exposed_form($form, $form_state);
  if (isset($this->view->exposed_input) && empty($this->view->exposed_input)) {

    // Replace field value with the query input
    $token = $form['circle']['location']['#default_value'];
    smart_ip_views_bridge_substitute_token_value($form['circle']['location']['#default_value'], $token);
    smart_ip_views_bridge_substitute_token_value($form['circle']['location']['#value'], $token);
  }
}