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

D6 porting

parent aebcfe72
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -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;
}
/**
......
......@@ -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
......@@ -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',
......
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