You are here

function getlocations_type_load in Get Locations 6

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_type_load()
  2. 7.2 getlocations.module \getlocations_type_load()
  3. 7 getlocations.module \getlocations_type_load()

Check that the node type exists

File

./getlocations.module, line 166
Displays locations on a map. for Drupal 6 using version 3 googlemaps API

Code

function getlocations_type_load($arg) {
  $result = db_query("SELECT name FROM {node_type} WHERE type='%s'", array(
    $arg,
  ));
  $row = db_fetch_array($result);
  return isset($row['name']) && $row['name'] ? $arg : FALSE;
}