function getlocations_info in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_info()
1 string reference to 'getlocations_info'
- getlocations_menu in ./
getlocations.module - Implementation of hook_menu().
File
- ./
getlocations.module, line 825 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_info() {
$lid = $_GET['lid'];
$location = getlocations_load_location($lid);
$location['nid'] = 0;
$location['uid'] = 0;
if ($nid = getlocations_get_nid_from_lid($lid)) {
$location['nid'] = $nid;
}
elseif ($uid = getlocations_get_uid_from_lid($lid)) {
$location['uid'] = $uid;
}
$content = theme('getlocations_info', $location);
print $content;
exit;
}