function getlocations_adinfo in Get Locations 7
Same name and namespace in other branches
- 7.2 getlocations.module \getlocations_adinfo()
Ajax callback Fetches bubble content
See also
1 string reference to 'getlocations_adinfo'
- getlocations_menu in ./
getlocations.module - Implements hook_menu().
File
- ./
getlocations.module, line 1937 - getlocations.module @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL
Code
function getlocations_adinfo() {
$lid = $_GET['lid'];
$lidkey = $_GET['key'];
$extra = FALSE;
if (isset($_GET['sdist'])) {
$extra['sdist'] = $_GET['sdist'];
}
if (isset($_GET['gdlink'])) {
$extra['gdlink'] = $_GET['gdlink'];
}
$content = getlocations_getinfo($lid, $lidkey, $extra);
drupal_json_output(array(
'content' => $content,
));
}