You are here

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

/**
 * @file
 * This file holds the main Drupal hook functions
 * and private functions for the openlayers_views module.
 *
 * @ingroup openlayers
 */

/**
 * Map ID Prefix
 */
define('OPENLAYERS_VIEWS_MAP_ID_PREFIX', 'openlayers-views-map-auto-id');

/**
 * Implementation of hook_help().
 */
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;
  }
}

/**
 * Implementation of hook_theme().
 */
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',
    ),
  );
}

/**
 * Implementation of hook_views_api().
 */
function openlayers_views_views_api() {
  return array(
    'api' => 2,
    'path' => drupal_get_path('module', 'openlayers_views') . '/views',
  );
}

Related topics

Functions

Namesort descending Description
openlayers_views_help Implementation of hook_help().
openlayers_views_theme Implementation of hook_theme().
openlayers_views_views_api Implementation of hook_views_api().

Constants

Namesort descending Description
OPENLAYERS_VIEWS_MAP_ID_PREFIX Map ID Prefix