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
8dda384b
Commit
8dda384b
authored
16 years ago
by
Brandon Bergren
Browse files
Options
Downloads
Patches
Plain Diff
D6 porting
parent
aebcfe72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
gmap_macro_builder.info
+2
-1
2 additions, 1 deletion
gmap_macro_builder.info
gmap_macro_builder.module
+11
-15
11 additions, 15 deletions
gmap_macro_builder.module
gmap_taxonomy.info
+3
-1
3 additions, 1 deletion
gmap_taxonomy.info
gmap_taxonomy.module
+1
-1
1 addition, 1 deletion
gmap_taxonomy.module
with
17 additions
and
18 deletions
gmap_macro_builder.info
+
2
−
1
View file @
8dda384b
...
...
@@ -2,4 +2,5 @@
name = GMap Macro Builder
description = UI for building GMap macros.
package = Location
dependencies = gmap
\ No newline at end of file
core = 6.x
dependencies[] = gmap
This diff is collapsed.
Click to expand it.
gmap_macro_builder.module
+
11
−
15
View file @
8dda384b
...
...
@@ -11,8 +11,8 @@
/**
* Implemenation of hook_help().
*/
function
gmap_macro_builder_help
(
$
section
)
{
switch
(
$
section
)
{
function
gmap_macro_builder_help
(
$
path
,
$arg
)
{
switch
(
$
path
)
{
case
'map/macro'
:
return
t
(
'You can use this interface to create a map macro suitable for pasting into a node or any other place that accepts a GMap macro.'
);
}
...
...
@@ -28,19 +28,15 @@ function gmap_macro_builder_perm() {
/**
* Implementation of hook_menu().
*/
function
gmap_macro_builder_menu
(
$may_cache
)
{
if
(
$may_cache
)
{
$items
=
array
();
$items
[]
=
array
(
'path'
=>
'map/macro'
,
'type'
=>
MENU_NORMAL_ITEM
,
'title'
=>
t
(
'Build a GMap macro'
),
'access'
=>
user_access
(
'create macro'
),
'callback'
=>
'drupal_get_form'
,
'callback arguments'
=>
'gmap_macro_builder_form'
,
);
return
$items
;
}
function
gmap_macro_builder_menu
()
{
$items
[
'map/macro'
]
=
array
(
'type'
=>
MENU_NORMAL_ITEM
,
'title'
=>
'Build a GMap macro'
,
'access arguments'
=>
array
(
'create macro'
),
'page callback'
=>
'drupal_get_form'
,
'page arguments'
=>
array
(
'gmap_macro_builder_form'
),
);
return
$items
;
}
/**
...
...
This diff is collapsed.
Click to expand it.
gmap_taxonomy.info
+
3
−
1
View file @
8dda384b
...
...
@@ -2,4 +2,6 @@
name = GMap Taxonomy Markers
description = Taxonomy based markers
package = Location
dependencies = gmap taxonomy
\ No newline at end of file
core = 6.x
dependencies[] = taxonomy
dependencies[] = gmap
This diff is collapsed.
Click to expand it.
gmap_taxonomy.module
+
1
−
1
View file @
8dda384b
...
...
@@ -11,7 +11,7 @@
/**
* Implementation of hook_form_alter().
*/
function
gmap_taxonomy_form_alter
(
$form
_id
,
&
$form
)
{
function
gmap_taxonomy_form_alter
(
&
$form
,
&
$form
_state
,
$form_id
)
{
if
(
$form_id
==
'taxonomy_form_vocabulary'
)
{
$form
[
'gmap_taxonomy'
]
=
array
(
'#type'
=>
'fieldset'
,
...
...
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