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

Update paths in documentation and change the theme('gmap') to drupal_render().

parent c0ea364b
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,11 @@ There are two methods of inserting a Google Map using the GMap API. You may eith
'maptype' => "Map", // baselayer type
'controltype' => "Small" // size of map controls
);
$output1 = theme('gmap', array('#settings' => $map_array));
$element1 = array(
'#type' => 'gmap',
'#gmap_settings' => $map_array1,
);
$output1 = drupal_render($element1);
// a more elaborate example
$map_array2 = array(
......@@ -133,8 +137,11 @@ There are two methods of inserting a Google Map using the GMap API. You may eith
),
),
);
$output2 = theme('gmap', array('#settings' => $map_array2));
$element2 = array(
'#type' => 'gmap',
'#gmap_settings' => $map_array2,
);
$output2 = drupal_render($element2);
</pre>
......
......@@ -28,7 +28,7 @@ sequence = "my1.png,my2.png" ; The list of image files to use. Specifying multi
; Files
</pre>
<p>After creating your .ini file, be sure to go to the <a href="base_url:admin/settings/gmap">GMap settings page</a>
<p>After creating your .ini file, be sure to go to the <a href="base_url:admin/config/services/gmap">GMap settings page</a>
and click the <em>Regenerate</em> button.</p>
<h2>GMap hooks</h2>
......
<!-- $Id$ -->
<p>If you would like to use GMap macros directly in nodes, you will need to
activate the <em>GMap filter</em> on one or more
<a href="base_url:admin/settings/filters">input formats</a>.</p>
<a href="base_url:admin/config/content/formats">input formats</a>.</p>
<p>To add a new input format, click the
<a href="base_url:admin/settings/filters/add">Add input format</a> tab
<a href="base_url:admin/config/content/formats/add">Add input format</a> tab
and fill in the form.
</p>
<p>To reconfigure an existing format, click the <em>Configure</em> link for the
input format you wish to change on the
<a href="base_url:admin/settings/filters">input formats</a> page.
<a href="base_url:admin/config/content/formats">input formats</a> page.
</p>
<p>
......
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