You are here

function _ip_geoloc_process_find_me_submit in IP Geolocation Views & Maps 7

Submit handler for "Find me" button on the "Set my location block".

This does little. See _ip_geoloc_process_find_me_ajax() for the hard work.

_state

Parameters

array $form:

1 string reference to '_ip_geoloc_process_find_me_submit'
_ip_geoloc_set_my_location_add_find_me in ./ip_geoloc_blocks.inc

File

./ip_geoloc_blocks.inc, line 668
Blocks available in IP Geolocation Views & Maps.

Code

function _ip_geoloc_process_find_me_submit($form, &$form_state) {

  // Clear any pending location retrieval process that may be in process.
  _ip_geoloc_set_session_value('last_position_check', time());
  _ip_geoloc_set_session_value('position_pending_since', microtime(TRUE));

  // Note: cannot redirect when also using AJAX.
  // TRUE would give access to $form_state['clicked_button'], but is not needed.
  $form_state['rebuild'] = FALSE;
}