Skip to content
Snippets Groups Projects
Commit 5ab76025 authored by Brandon Bergren's avatar Brandon Bergren
Browse files

Fix #345269, noticed while helping George2 in IRC: Call node_view() instead of...

Fix #345269, noticed while helping George2 in IRC: Call node_view() instead of theme('node') to make stuff like CCK fields get output correctly in node markers.
parent 55cee9fd
No related branches found
No related tags found
No related merge requests found
...@@ -772,7 +772,7 @@ function theme_gmap_location_infowindow_node($node) { ...@@ -772,7 +772,7 @@ function theme_gmap_location_infowindow_node($node) {
// directory and add theme_hook_gmapnodelabel($node, $location) to it. // directory and add theme_hook_gmapnodelabel($node, $location) to it.
// Be sure to enable your 'flexinode_#.module'. // Be sure to enable your 'flexinode_#.module'.
return '<div class="gmapnodelabel gmapnodelabel-'. form_clean_id($node->type) . return '<div class="gmapnodelabel gmapnodelabel-'. form_clean_id($node->type) .
'">'. strtr(theme('node', $node, TRUE), "'\n\r", '" ') .'</div>'; // make sure it all goes on one line. '">'. strtr(node_view($node, TRUE, FALSE, FALSE), "'\n\r", '" ') .'</div>'; // make sure it all goes on one line.
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment