You are here

function openlayers_test_ctools_plugin_api in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 tests/openlayers_test.module \openlayers_test_ctools_plugin_api()

Implementation of hook_ctools_plugin_api().

File

tests/openlayers_test.module, line 44
Main OpenLayers Test Module file

Code

function openlayers_test_ctools_plugin_api($module, $api) {

  // Define plugins for OpenLayers plugins api
  if ($module == "openlayers") {
    switch ($api) {
      case 'openlayers_presets':
        return array(
          'version' => 1,
        );
      case 'openlayers_styles':
        return array(
          'version' => 1,
        );
    }
  }
}