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

More cleanup and documentation updating.

parent 3732bccf
No related branches found
No related tags found
No related merge requests found
...@@ -65,7 +65,6 @@ function gmap_theme() { ...@@ -65,7 +65,6 @@ function gmap_theme() {
'gmap_dimension' => array('render element' => 'element'), 'gmap_dimension' => array('render element' => 'element'),
// 'gmap_address' => array('render element' => 'element'), // 'gmap_address' => array('render element' => 'element'),
// 'gmap_align' => array('render element' => 'element'), // 'gmap_align' => array('render element' => 'element'),
'gmap_style' => array('render element' => 'element'),
'gmap' => array('render element' => 'element'), 'gmap' => array('render element' => 'element'),
); );
} }
...@@ -754,17 +753,6 @@ function process_gmap_style($element) { ...@@ -754,17 +753,6 @@ function process_gmap_style($element) {
return $element; return $element;
} }
/**
* Theme a gmap_style fieldset.
* @ingroup themeable
*/
function theme_gmap_style($element) {
// Fieldsets print #value at the end, so we need to empty it out.
// Otherwise, it puts "Array" at the end of the fieldset.
$element['#value'] = '';
return theme('fieldset', $element, $element['#children']);
}
/** /**
* Overlay editor #process function. * Overlay editor #process function.
*/ */
......
...@@ -917,5 +917,9 @@ javascript side automatically. This is very useful when writing custom code.</p> ...@@ -917,5 +917,9 @@ javascript side automatically. This is very useful when writing custom code.</p>
<pre> <pre>
$map = array(...); // Set up your map array. $map = array(...); // Set up your map array.
$output = theme('gmap', array('#settings' => $map)); $element = array( // GMap in Drupal 7 uses drupal_render().
'#type' => 'gmap',
'#gmap_settings' => $map,
);
$output = drupal_render($element);
</pre> </pre>
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