function openlayers_ui_menu in Openlayers 7.3
Same name and namespace in other branches
- 6.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_menu()
- 7.2 modules/openlayers_ui/openlayers_ui.module \openlayers_ui_menu()
Implements hook_menu().
File
- modules/
openlayers_ui/ openlayers_ui.module, line 10 - Administrative UI for openlayers.
Code
function openlayers_ui_menu() {
$items = array();
// Core Openlayers settings pages.
$items['admin/structure/openlayers'] = array(
'title' => 'Openlayers',
'description' => 'Manage maps, layers, sources, controls, styles, and interactions.',
'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',
'access arguments' => array(
'administer openlayers',
),
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => 15,
);
return $items;
}