You are here

function ip_geoloc_ctools_plugin_api in IP Geolocation Views & Maps 8

Same name and namespace in other branches
  1. 7 ip_geoloc.module \ip_geoloc_ctools_plugin_api()

Implements hook_ctools_plugin_api().

Required to add a layer to OpenLayers, see ip_geoloc_openlayers_layers().

File

./ip_geoloc.openlayers.inc, line 47
ip_geoloc.openlayers.inc

Code

function ip_geoloc_ctools_plugin_api($module, $api) {
  if ($module == 'openlayers' && $api == 'openlayers_layers') {
    return [
      'version' => 1,
    ];
  }
}