You are here

openlayers_layers.inc in Openlayers 7.2

File

modules/openlayers_ui/plugins/export_ui/openlayers_layers.inc
View source
<?php

/**
 * CTools Export UI required function for plugin definition
 * See function ctools_plugin_load_includes() in the module ctools.
 */
function openlayers_ui_openlayers_layers_ctools_export_ui() {
  return array(
    'schema' => 'openlayers_layers',
    'access' => 'administer openlayers',
    'menu' => array(
      'menu prefix' => 'admin/structure/openlayers',
      'menu item' => 'layers',
      'menu title' => 'Layers',
      'menu description' => 'Administer OpenLayers Layers presets.',
    ),
    'handler' => array(
      'class' => 'openlayers_layers_ui',
    ),
    'export' => array(
      'admin_title' => 'name',
      'admin_description' => 'description',
    ),
    'title singular' => t('layer'),
    'title plural' => t('layers'),
    'title singular proper' => t('OpenLayers Layer preset'),
    'title plural proper' => t('OpenLayers Layers presets'),
    'strings' => array(
      'confirmation' => array(
        'add' => array(
          'success' => t('Layer saved.'),
        ),
        'delete' => array(
          'success' => t('Layer was deleted.'),
        ),
      ),
    ),
  );
}

Functions

Namesort descending Description
openlayers_ui_openlayers_layers_ctools_export_ui CTools Export UI required function for plugin definition See function ctools_plugin_load_includes() in the module ctools.