You are here

function openlayers_layers_menu in Openlayers 6

Implementation of hook_menu().

File

modules/openlayers_layers/openlayers_layers.module, line 28
This file holds the main Drupal hook functions and private functions for the openlayers_layers module.

Code

function openlayers_layers_menu() {
  $items = array();
  $items['admin/settings/openlayers/layers'] = array(
    'title' => 'Layers',
    'description' => 'Set your API keys here',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'openlayers_layers_admin_settings',
    ),
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_layers.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  return $items;
}