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

Let people pass map arrays to theme('gmap') without wrapping them in...

Let people pass map arrays to theme('gmap') without wrapping them in array('#settings' => ...). In theory.
parent 8a1fbe09
No related branches found
No related tags found
No related merge requests found
......@@ -1125,6 +1125,13 @@ function theme_gmap_align($element) {
function theme_gmap($element) {
_gmap_doheader();
// Convert from raw map array if needed.
if (!isset($element['#settings'])) {
$element = array(
'#settings' => $element,
);
}
$mapid = FALSE;
if (isset($element['#map']) && $element['#map']) {
// The default mapid is #map.
......
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