You are here

function openlayers_ctools_plugin_directory in Openlayers 6.2

Same name in this branch
  1. 6.2 openlayers.module \openlayers_ctools_plugin_directory()
  2. 6.2 docs/openlayers.api.php \openlayers_ctools_plugin_directory()
Same name and namespace in other branches
  1. 7.2 openlayers.module \openlayers_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory

File

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

Code

function openlayers_ctools_plugin_directory($module, $plugin) {

  // The format of plugin includes should be the
  // following:
  //   modulename_plugin_name.inc
  //
  // For example:
  //  openlayers_style_plugin_name.inc
  // If this module needed to supply style plugins.

  /*
  if ($module == 'openlayers' && $plugin == 'style_plugin') {
    return 'plugins/style_plugin';
  }
  */

  // This should change to the following when converted:

  /*
  if ($module == 'openlayers') {
    return 'plugins/' . $plugin;
  }
  */
}