openlayers_views.module in Openlayers 6
This file holds the main Drupal hook functions
and private functions for the openlayers_views module.
File
modules/openlayers_views/openlayers_views.module
View source
<?php
define('OPENLAYERS_VIEWS_MAP_ID_PREFIX', 'openlayers-views-map-auto-id');
function openlayers_views_help($path, $arg) {
$output = '';
switch ($path) {
case 'admin/help#openlayers_views':
$output = '<p>' . t('The OpenLayers Views module provides a set of plugins for Views.') . '</p>';
return $output;
}
}
function openlayers_views_theme($existing, $type, $theme, $path) {
return array(
'openlayers_views_feature_style' => array(
'arguments' => array(
'view' => NULL,
'row' => NULL,
'group' => NULL,
),
'file' => 'includes/openlayers_views.theme.inc',
),
);
}
function openlayers_views_views_api() {
return array(
'api' => 2,
'path' => drupal_get_path('module', 'openlayers_views') . '/views',
);
}