You are here

function openlayers_ctools_plugin_api in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 openlayers.module \openlayers_ctools_plugin_api()
  2. 7.3 openlayers.module \openlayers_ctools_plugin_api()

Implements hook_ctools_plugin_api().

File

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

Code

function openlayers_ctools_plugin_api($module, $api) {
  if ($module == "openlayers") {
    switch ($api) {
      case 'openlayers_maps':
        return array(
          'version' => 1,
        );
      case 'openlayers_layers':
        return array(
          'version' => 1,
        );
      case 'openlayers_projections':
        return array(
          'version' => 1,
        );
      case 'openlayers_styles':
        return array(
          'version' => 1,
        );
      case 'openlayers_layer_types':
        return array(
          'version' => 1,
        );
      case 'openlayers_behaviors':
        return array(
          'version' => 1,
        );
    }
  }
  elseif ($module == 'boxes' && $api == 'plugins') {
    return array(
      'version' => 1,
    );
  }
}