function getlocations_get_nid_from_lid in Get Locations 6
Same name and namespace in other branches
- 6.2 getlocations.module \getlocations_get_nid_from_lid()
- 7.2 getlocations.module \getlocations_get_nid_from_lid()
- 7 getlocations.module \getlocations_get_nid_from_lid()
3 calls to getlocations_get_nid_from_lid()
File
- ./
getlocations.module, line 809 - Displays locations on a map. for Drupal 6 using version 3 googlemaps API
Code
function getlocations_get_nid_from_lid($lid) {
if ($lid) {
$result = db_query('SELECT nid FROM {location_instance} WHERE lid=%d', array(
$lid,
));
$row = db_fetch_array($result);
return isset($row['nid']) && $row['nid'] ? $row['nid'] : FALSE;
}
}