You are here

function openlayers_theme in Openlayers 6.2

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

Implementation of hook_theme().

File

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

Code

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