function esi_ctools_plugin_directory in ESI: Edge Side Includes 6.2
Implementation of hook_ctools_plugin_directory().
File
- ./
esi.module, line 481 - Adds support for ESI (Edge-Side-Include) integration, allowing blocks to be\ delivered by ESI, with support for per-block cache times.
Code
function esi_ctools_plugin_directory($module, $plugin) {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', ESI_REQUIRED_CTOOLS_API)) {
return;
}
if ($module == 'page_manager' || $module == 'panels' || $module == 'ctools') {
return 'plugins/' . $plugin;
}
}