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
ab8d1353
Commit
ab8d1353
authored
16 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
Fix some of the form processing issues.
parent
f8c91e04
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gmap.module
+6
-11
6 additions, 11 deletions
gmap.module
with
6 additions
and
11 deletions
gmap.module
+
6
−
11
View file @
ab8d1353
...
...
@@ -61,12 +61,6 @@ function gmap_defaults() {
*/
function
gmap_theme
()
{
return
array
(
'gmap_location_user_page'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'og_gmapnodelabel'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'gmap_location_node_page'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'image_gmapnodelabel'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'gmapnodelabel'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'gmap_location_user_html'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'views_view_gmap'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'gmap_views_marker_label'
=>
array
(
'arguments'
=>
array
(
'element'
)),
'gmap_marker_popup'
=>
array
(
'arguments'
=>
array
(
'label'
)),
...
...
@@ -863,28 +857,29 @@ function process_gmap_control($element, $edit, &$form_state, $complete_form) {
//dpm($element);
$element
[
'#type'
]
=
$fieldtype
;
gmap_widget_setup
(
$element
,
$control
);
/*
if (!empty($theme)) {
$element['#theme'] = $theme;
}
else {
$element['#theme'] = 'gmap_'. $control;
}
}
*/
return
$element
;
}
// @@@ Finish debugging.
function
process_gmap_textfield
(
$element
,
$edit
,
&
$form_state
,
$complete_form
)
{
$control
=
substr
(
$element
[
'#type'
],
5
);
dpm
(
$element
);
//
dpm($element);
$element
[
'#type'
]
=
'textfield'
;
gmap_widget_setup
(
$element
,
$control
);
if
(
!
empty
(
$theme
))
{
/*
if (!empty($theme)) {
$element['#theme'] = $theme;
}
else {
$element['#theme'] = 'gmap_'. $control;
}
dpm
(
$element
);
}
*/
//
dpm($element);
return
$element
;
}
...
...
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