You are here

function openlayers_test_ctools_plugin_api in Openlayers 7.2

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

Implements hook_ctools_plugin_api().

File

tests/openlayers_test.module, line 50
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_maps':
        return array(
          'version' => 1,
        );
      case 'openlayers_layers':
        return array(
          'version' => 1,
        );
    }
  }
}