function device_geolocation_presave in Smart IP 6.2
Same name and namespace in other branches
- 7.2 modules/device_geolocation/device_geolocation.module \device_geolocation_presave()
Implements hook_user_presave().
File
- modules/
device_geolocation/ device_geolocation.module, line 51 - Provides visitor's geographical location using client device location source that implements W3C Geolocation API and Google Geocoding service.
Code
function device_geolocation_presave(&$edit, $account, $category) {
// Reset the timer for frequency of user's geolocation checking
smart_ip_session_set('device_geolocation_attempt', NULL);
}