You are here

function theme_gmap_location_infowindow_node in GMap Module 6

Same name and namespace in other branches
  1. 6.2 gmap_location.module \theme_gmap_location_infowindow_node()
  2. 7.2 gmap_location.module \theme_gmap_location_infowindow_node()
  3. 7 gmap_location.module \theme_gmap_location_infowindow_node()

Theme a node info window.

File

./gmap_location.module, line 777
GMap Location module is a module to add some gmap funcationality based on location.modules information.

Code

function theme_gmap_location_infowindow_node($node) {

  // Allow a module (where the module name matches the node type name)
  // to define a custom display for the google map label.
  // For this to work with flexinode defined data types,
  // a module called 'flexinode_#.module' in your site's module
  // directory and add theme_hook_gmapnodelabel($node, $location) to it.
  // Be sure to enable your 'flexinode_#.module'.
  return '<div class="gmapnodelabel gmapnodelabel-' . form_clean_id($node->type) . '">' . strtr(node_view($node, TRUE, FALSE, FALSE), "'\n\r", '"  ') . '</div>';

  // make sure it all goes on one line.
}