You are here

function getlocations_lidinfo in Get Locations 6

Same name and namespace in other branches
  1. 6.2 getlocations.module \getlocations_lidinfo()
  2. 7.2 getlocations.module \getlocations_lidinfo()
  3. 7 getlocations.module \getlocations_lidinfo()
1 string reference to 'getlocations_lidinfo'
getlocations_menu in ./getlocations.module
Implementation of hook_menu().

File

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

Code

function getlocations_lidinfo() {
  $lid = $_GET['lid'];
  $content = FALSE;
  if ($nid = getlocations_get_nid_from_lid($lid)) {
    $content = '/node/' . $nid;
  }
  elseif ($uid = getlocations_get_uid_from_lid($lid)) {
    $content = '/user/' . $uid;
  }
  print $content;
  exit;
}