You are here

function openlayers_views_views_plugins in Openlayers 7.3

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.2 modules/openlayers_views/views/openlayers_views.views.inc \openlayers_views_views_plugins()

Implements hook_views_plugins().

File

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

Code

function openlayers_views_views_plugins() {
  return array(
    'display' => array(
      'openlayers' => array(
        'title' => t('Openlayers data'),
        'help' => t('Data for Openlayers module.'),
        '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'),
      ),
    ),
    'style' => array(
      'openlayers_source_vector' => array(
        'title' => t('Openlayers source'),
        'help' => t('Provides an openlayers source to power an openlayers layer.'),
        'handler' => 'openlayers_views_plugin_style_source_vector',
        '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_map_views' => array(
        'title' => t('Openlayers map'),
        'help' => t('Provides a map based on a views configuration.'),
        'handler' => 'openlayers_views_plugin_map_views',
        'uses fields' => TRUE,
        'uses row plugin' => TRUE,
        'uses options' => TRUE,
        'even empty' => TRUE,
        'type' => 'normal',
      ),
    ),
  );
}