You are here

function esi_panels_ctools_plugin_directory in ESI: Edge Side Includes 7.3

Implementation of hook_ctools_plugin_directory().

File

modules/esi_panels/esi_panels.module, line 129
ESI handler for panel panes.

Code

function esi_panels_ctools_plugin_directory($module, $plugin) {

  // Safety: go away if CTools is not at an appropriate version.
  if (!module_invoke('ctools', 'api_version', ESI_PANELS_REQUIRED_CTOOLS_API)) {
    return;
  }

  // We don't support the 'ctools' 'cache' plugin and pretending to causes
  // errors when they're in use.
  if ($module == 'ctools' && $plugin == 'cache') {
    return;

    // if we did we'd make a plugin/ctools_cache or something.
  }
  if ($module == 'page_manager' || $module == 'panels' || $module == 'ctools') {
    return 'plugins/' . $plugin;
  }
}