function ip_geoloc_is_first_click in IP Geolocation Views & Maps 7
Same name and namespace in other branches
- 8 ip_geoloc.module \ip_geoloc_is_first_click()
Returns whether this was the first click of the session.
Return value
bool TRUE if it was, i.e. if there has been no position check before.
1 call to ip_geoloc_is_first_click()
- ip_geoloc_init in ./
ip_geoloc.module - Implements hook_init().
File
- ./
ip_geoloc.module, line 319 - IPGV&M is a mapping engine for Views that contain locations of entities and/or visitors. Google Maps, Leaflet and OpenLayers2 maps are all supported. and available through this module. Using a number of optional sources IPGV&M also retrieves…
Code
function ip_geoloc_is_first_click() {
$last_position_check = _ip_geoloc_get_session_value('last_position_check');
return empty($last_position_check);
}