You are here

theme.inc in OpenLayers Plus 7.2

Same filename and directory in other branches
  1. 7.3 theme/theme.inc
  2. 7 theme/theme.inc

Theme file for Openlayers_plus.

File

theme/theme.inc
View source
<?php

/**
 * @file
 * Theme file for Openlayers_plus.
 */

/**
 * Preprocessor for theme('openlayers_plus_blockswitcher').
 */
function template_preprocess_openlayers_plus_blockswitcher(&$vars) {
  drupal_add_css(drupal_get_path('module', 'openlayers_plus') . '/theme/openlayers_plus.css');
}

/**
 * Preprocessor for theme('openlayers_plus_legend').
 */
function template_preprocess_openlayers_plus_legend(&$vars) {
  drupal_add_css(drupal_get_path('module', 'openlayers_plus') . '/theme/openlayers_plus.css');
}

/**
 * Preprocessor for theme('openlayers_plus_legend').
 */
function template_preprocess_openlayers_plus_blocktoggle(&$vars) {
  drupal_add_css(drupal_get_path('module', 'openlayers_plus') . '/theme/openlayers_plus.css');
  $vars['points'] = t('Points');
  $vars['shading'] = t('Shading');
}

Functions

Namesort descending Description
template_preprocess_openlayers_plus_blockswitcher Preprocessor for theme('openlayers_plus_blockswitcher').
template_preprocess_openlayers_plus_blocktoggle Preprocessor for theme('openlayers_plus_legend').
template_preprocess_openlayers_plus_legend Preprocessor for theme('openlayers_plus_legend').