function openlayers_test_menu in Openlayers 7.2
Same name and namespace in other branches
- 6.2 tests/openlayers_test.module \openlayers_test_menu()
- 6 tests/openlayers_test.module \openlayers_test_menu()
Implements hook_menu().
File
- tests/
openlayers_test.module, line 16 - Main OpenLayers Test Module file
Code
function openlayers_test_menu() {
$items = array();
$items['admin/structure/openlayers/test'] = array(
'title' => 'Tests',
'description' => 'Test Pages for OpenLayers.',
'page callback' => 'openlayers_test_show_maps',
'access arguments' => array(
'administer openlayers',
),
'file' => 'includes/openlayers_test.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => 9999,
);
$items['admin/structure/openlayers/test/list'] = array(
'title' => 'Show Maps',
'type' => MENU_DEFAULT_LOCAL_TASK,
'weight' => -20,
);
$items['admin/structure/openlayers/test/js'] = array(
'title' => 'JS Tests',
'description' => 'Test Pages for OpenLayers Javascript.',
'page callback' => 'openlayers_test_js',
'access arguments' => array(
'administer openlayers',
),
'file' => 'includes/openlayers_test.pages.inc',
'type' => MENU_LOCAL_TASK,
'weight' => -10,
);
return $items;
}