function gmap_location_node_point in GMap Module 5
Same name and namespace in other branches
- 6.2 gmap_location.module \gmap_location_node_point()
- 6 gmap_location.module \gmap_location_node_point()
- 7.2 gmap_location.module \gmap_location_node_point()
- 7 gmap_location.module \gmap_location_node_point()
AHAH callback for getting the contents of a node point popup.
1 string reference to 'gmap_location_node_point'
- gmap_location_menu in ./gmap_location.module 
- Implementation of hook_menu().
File
- ./gmap_location.module, line 421 
- GMap Location module is a module to add some gmap funcationality based on location.modules information.
Code
function gmap_location_node_point() {
  $nid = arg(3);
  $opt = arg(4);
  if (is_numeric($nid) && ($node = node_load($nid))) {
    $output = '';
    $type = strtr($node->type, '-', '_');
    $output = theme($type . '_gmapnodelabel', $node, $opt);
    if (empty($output)) {
      $output = theme('gmapnodelabel', $node, $opt);
    }
    echo $output;
    exit;
  }
}