Skip to content
Snippets Groups Projects
Commit 5e96833b authored by recrit's avatar recrit Committed by podarok
Browse files

Issue #2483293 by recrit: Pass view object to theme gmap when render a view

parent a440c3db
No related branches found
No related tags found
No related merge requests found
......@@ -1492,6 +1492,7 @@ function template_preprocess_gmap_view_gmap(&$vars) {
$vars['map_element'] = array(
'#type' => 'gmap',
'#gmap_settings' => $vars['map_object'],
'#view' => $vars['view'],
);
// Theme the map.
$vars['map'] = drupal_render($vars['map_element']);
......
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