function openlayers_ui_menu in Openlayers 7.2
Same name and namespace in other branches
- 6.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_menu()
- 7.3 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_menu()
Implements hook_menu
File
- modules/
openlayers_ui/ openlayers_ui.module, line 112 - Main Drupal module file for the OpenLayers UI module
Code
function openlayers_ui_menu() {
$items = array();
// Core OpenLayers settings pages.
$items['admin/structure/openlayers'] = array(
'title' => 'OpenLayers',
'description' => 'Manage maps, layers, styles, and map behaviors.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'openlayers_ui_admin_settings',
),
'access arguments' => array(
'administer openlayers',
),
'file' => 'includes/openlayers_ui.admin.inc',
'type' => MENU_NORMAL_ITEM,
);
$items['admin/structure/openlayers/settings'] = array(
'title' => 'Settings',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
// Layer-type-wide settings form
$items['admin/structure/openlayers/layers/settings'] = array(
'title' => 'API Keys',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'openlayers_ui_layers_settings',
),
'access arguments' => array(
'administer openlayers',
),
'file' => 'includes/openlayers_ui.layers.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
$items['admin/structure/openlayers/callbacks/version_check/%'] = array(
'title' => 'OpenLayers Version Check',
'page callback' => 'openlayers_ui_version_check',
'page arguments' => array(
5,
),
'access arguments' => array(
'administer openlayers',
),
'file' => 'includes/openlayers_ui.admin.inc',
'type' => MENU_CALLBACK,
);
return $items;
}