You are here

function getdirections_get_lid_title in Get Directions 6.2

Same name and namespace in other branches
  1. 7.3 getdirections.module \getdirections_get_lid_title()
  2. 7.2 getdirections.module \getdirections_get_lid_title()
1 call to getdirections_get_lid_title()
getdirections_direction in ./getdirections.module
Function to setup the map and form

File

./getdirections.module, line 1322
Fetches google map directions.

Code

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