function theme_gmap_location_infowindow_node in GMap Module 7.2
Same name and namespace in other branches
- 6.2 gmap_location.module \theme_gmap_location_infowindow_node()
- 6 gmap_location.module \theme_gmap_location_infowindow_node()
- 7 gmap_location.module \theme_gmap_location_infowindow_node()
Theme a node info window.
File
- ./
gmap_location.module, line 903 - GMap Location module is a module to add some gmap funcationality based on location.modules information.
Code
function theme_gmap_location_infowindow_node(&$vars) {
$node = $vars['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'.
// Make sure it all goes on one line.
$return = '<div class="gmapnodelabel gmapnodelabel-';
$return .= drupal_clean_css_identifier($node->type);
$return .= '">';
$return .= strtr(drupal_render(node_view($node, 'teaser')), "'\n\r", '" ');
$return .= '</div>';
return $return;
}