function _openlayers_examples_ajax_reload_default_map in Openlayers 7.3
Ajax callback.
1 string reference to '_openlayers_examples_ajax_reload_default_map'
- openlayers_examples in modules/
openlayers_examples/ openlayers_examples.module - Form handler.
File
- modules/
openlayers_examples/ openlayers_examples.module, line 243 - Openlayers Examples.
Code
function _openlayers_examples_ajax_reload_default_map($form, &$form_state) {
// This is for preventing 'system/ajax' as destination when using AJAX maps.
// See: http://drupal.stackexchange.com/questions/86958/get-current-url-arguments-inside-ajax-callback
$_SESSION['current_path'] = $form_state['input']['current_path'];
return $form['form'];
}