You are here

function openlayers_theme in Openlayers 7.2

Same name and namespace in other branches
  1. 8.4 openlayers.module \openlayers_theme()
  2. 6.2 openlayers.module \openlayers_theme()
  3. 6 openlayers.module \openlayers_theme()
  4. 7.3 openlayers.module \openlayers_theme()

Implements hook_theme().

File

./openlayers.module, line 49
Main OpenLayers API File

Code

function openlayers_theme($existing, $type, $theme, $path) {
  return array(
    'openlayers_map' => array(
      'arguments' => array(
        'map' => array(),
      ),
      'file' => 'includes/openlayers.theme.inc',
      'template' => '/templates/openlayers-map',
    ),
    'openlayers_styles' => array(
      'arguments' => array(
        'styles' => array(),
        'map' => array(),
      ),
      'file' => 'includes/openlayers.theme.inc',
    ),
  );
}