You are here

function openlayers_presets_ui_menu in Openlayers 6

Implementation of hook_menu().

File

modules/openlayers_presets_ui/openlayers_presets_ui.module, line 53
Main OpenLayers Preset UI Hook Implemntations

Code

function openlayers_presets_ui_menu() {
  $items = array();
  $items['admin/settings/openlayers/presets'] = array(
    'title' => 'Presets',
    'description' => 'Create OpenLayers map presets.',
    'page callback' => 'openlayers_presets_ui_presets_manage_list',
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/openlayers/presets/list'] = array(
    'title' => 'List',
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => -20,
  );
  $items['admin/settings/openlayers/presets/add'] = array(
    'title' => 'Add',
    'description' => 'Add OpenLayers map preset.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'openlayers_presets_ui_presets_manage_add',
    ),
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => -10,
  );
  $items['admin/settings/openlayers/presets/add/%openlayers_presets_ui_preset_name'] = array(
    'title' => 'Clone Preset',
    'description' => 'Add OpenLayers map preset.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'openlayers_presets_ui_presets_manage_add',
      5,
    ),
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_NORMAL_ITEM,
    'weight' => -10,
  );
  $items['admin/settings/openlayers/presets/%openlayers_presets_ui_preset_name/%openlayers_presets_ui_preset_action'] = array(
    'title' => 'Manage Preset',
    'description' => 'Manage OpenLayers map preset.',
    'page callback' => 'openlayers_presets_ui_presets_manage',
    'page arguments' => array(
      4,
      5,
    ),
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/settings/openlayers/presets/import'] = array(
    'title' => 'Import',
    'description' => 'Import OpenLayers map preset.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'openlayers_presets_ui_presets_import',
    ),
    'access arguments' => array(
      'administer openlayers',
    ),
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 0,
  );
  $items['openlayers/ahah/preset'] = array(
    'title' => 'OpenLayers AHAH',
    'page callback' => 'openlayers_presets_ui_preset_ahah',
    'access callback' => TRUE,
    'file' => 'includes/openlayers_presets_ui.ui.inc',
    'type' => MENU_CALLBACK,
  );
  return $items;
}