function google_map_field_menu in Google Map Field 7
Same name and namespace in other branches
- 7.2 google_map_field.module \google_map_field_menu()
Implements hook_menu().
File
- ./
google_map_field.module, line 44 - This file defines all the necessary hooks and functions to create a Google Map Field field type and also a WYSIWYG editor plugin for inserting maps directly into filtered content.
Code
function google_map_field_menu() {
$items = array();
$items['admin/config/google-map-field-apikey'] = array(
'title' => 'Google Map Field API Key',
'description' => 'Set your Google Maps API key.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'google_map_field_apikey_settings_form',
),
'file' => 'includes/google_map_field.admin.inc',
'access arguments' => array(
'access administration pages',
),
);
$items['google-map-field/token-builder'] = array(
'access arguments' => array(
'access content',
),
'page callback' => 'drupal_get_form',
'page arguments' => array(
'google_map_field_tokenbuilder_form',
),
'type' => MENU_CALLBACK,
);
return $items;
}