You are here

function device_geolocation_user_login in Smart IP 6.2

Same name and namespace in other branches
  1. 8.4 modules/device_geolocation/device_geolocation.module \device_geolocation_user_login()
  2. 8.3 modules/device_geolocation/device_geolocation.module \device_geolocation_user_login()
  3. 7.2 modules/device_geolocation/device_geolocation.module \device_geolocation_user_login()

Implements hook_user_login().

File

modules/device_geolocation/device_geolocation.module, line 59
Provides visitor's geographical location using client device location source that implements W3C Geolocation API and Google Geocoding service.

Code

function device_geolocation_user_login(&$edit, $account) {

  // Reset the timer for frequency of user's geolocation checking
  smart_ip_session_set('device_geolocation_attempt', NULL);
}