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