You are here

function device_geolocation_entity_insert in Smart IP 8.3

Same name and namespace in other branches
  1. 8.4 modules/device_geolocation/device_geolocation.module \device_geolocation_entity_insert()

Implements hook_entity_insert().

File

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

Code

function device_geolocation_entity_insert(EntityInterface $entity) {

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