Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
gmap
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
gmap
Commits
9b470378
Commit
9b470378
authored
14 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
More cleanup and documentation updating.
parent
3732bccf
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
gmap.module
+0
-12
0 additions, 12 deletions
gmap.module
help/array.html
+5
-1
5 additions, 1 deletion
help/array.html
with
5 additions
and
13 deletions
gmap.module
+
0
−
12
View file @
9b470378
...
@@ -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.
*/
*/
...
...
This diff is collapsed.
Click to expand it.
help/array.html
+
5
−
1
View file @
9b470378
...
@@ -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>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment