You are here

function getlocations_get_uid_from_lid in Get Locations 6

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_get_uid_from_lid()
  2. 7.2 getlocations.module \getlocations_get_uid_from_lid()
  3. 7 getlocations.module \getlocations_get_uid_from_lid()
3 calls to getlocations_get_uid_from_lid()
getlocations_info in ./getlocations.module
getlocations_lidinfo in ./getlocations.module
getlocations_load_location in ./getlocations.module

File

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

Code

function getlocations_get_uid_from_lid($lid) {
  if ($lid) {
    $result = db_query('SELECT uid FROM {location_instance} WHERE lid=%d', array(
      $lid,
    ));
    $row = db_fetch_array($result);
    return isset($row['uid']) && $row['uid'] ? $row['uid'] : FALSE;
  }
}