function getdirections_get_nid_from_lid in Get Directions 6.2
Same name and namespace in other branches
- 7.3 getdirections.module \getdirections_get_nid_from_lid()
- 7.2 getdirections.module \getdirections_get_nid_from_lid()
1 call to getdirections_get_nid_from_lid()
- theme_getdirections_show in ./
getdirections.theme.inc - Theme to use for when one or no locations are supplied.
File
- ./
getdirections.module, line 1314 - Fetches google map directions.
Code
function getdirections_get_nid_from_lid($lid) {
if (module_exists('location') && $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;
}
}