openlayers_views.views.inc in Openlayers 7.2
This file holds main views functions for the openlayers_views module.
File
modules/openlayers_views/views/openlayers_views.views.incView source
<?php
/**
* @file
* This file holds main views functions for the openlayers_views module.
*
* @ingroup openlayers
*/
/**
* Implementation of hook_views_plugins().
*/
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,
),
),
);
}
Functions
Name | Description |
---|---|
openlayers_views_views_plugins | Implementation of hook_views_plugins(). |