You are here

function device_geolocation_user_login in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 modules/device_geolocation/device_geolocation.module \device_geolocation_user_login()
  2. 6.2 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 30
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(AccountInterface $account) {

  // Reset the timer for frequency of user's geolocation checking
  SmartIp::setSession('device_geolocation_last_attempt', NULL);
}