You are here

function openlayers_views_views_plugins in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
  2. 6 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()
  3. 7.3 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()

Implementation of hook_views_plugins().

File

modules/openlayers_views/views/openlayers_views.views.inc, line 13
This file holds main views functions for the openlayers_views module.

Code

function openlayers_views_views_plugins() {
  return array(
    'module' => 'openlayers_views',
    'display' => array(
      'openlayers' => array(
        'title' => t('OpenLayers Data Overlay'),
        'help' => t('Data layer for OpenLayers maps.'),
        'handler' => 'openlayers_views_plugin_display_openlayers',
        'path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'uses hook menu' => FALSE,
        'use ajax' => FALSE,
        'use pager' => TRUE,
        'accept attachments' => FALSE,
        'admin' => t('OpenLayers Data Overlay'),
      ),
    ),
    'style' => array(
      'openlayers_map' => array(
        'title' => t('OpenLayers Map'),
        'help' => t('Displays a View as an OpenLayers map.'),
        'handler' => 'openlayers_views_style_map',
        'theme' => 'openlayers_views_map',
        'theme path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'uses fields' => FALSE,
        'uses row plugin' => FALSE,
        'uses options' => TRUE,
        'uses grouping' => FALSE,
        'type' => 'normal',
        'even empty' => FALSE,
      ),
      'openlayers_data' => array(
        'title' => t('OpenLayers Vector Data Overlay'),
        'help' => t('Provides Data to Power an OpenLayers map.'),
        'handler' => 'openlayers_views_style_data',
        'theme' => 'openlayers_views_data',
        'theme path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'uses fields' => TRUE,
        'uses row plugin' => TRUE,
        'uses options' => TRUE,
        'uses grouping' => TRUE,
        'type' => 'openlayers',
        'even empty' => TRUE,
      ),
      'openlayers_data_image' => array(
        'title' => t('OpenLayers Image Data Overlay'),
        'help' => t('Provides an image to use as a layer in an OpenLayers map.'),
        'handler' => 'openlayers_views_style_data_image',
        'path' => drupal_get_path('module', 'openlayers_views') . '/views',
        'uses fields' => TRUE,
        'uses row plugin' => TRUE,
        'uses options' => TRUE,
        'uses grouping' => TRUE,
        'type' => 'openlayers',
        'even empty' => TRUE,
      ),
    ),
  );
}