function device_geolocation_block_view in Smart IP 7
Same name and namespace in other branches
- 7.2 modules/device_geolocation/device_geolocation.module \device_geolocation_block_view()
Implements hook_block_view().
File
- modules/
device_geolocation/ device_geolocation.module, line 46 - Provides visitor's geographical location using client device location source that implements W3C Geolocation API and Google Geocoding service.
Code
function device_geolocation_block_view($delta = '') {
$block = array();
switch ($delta) {
case 'visitor_geolocation':
$block['subject'] = t('Your Geolocation Details');
$block['content'] = device_geolocation_contents();
break;
}
return $block;
}