function panels_ctools_plugin_directory in Panels 6.3
Same name and namespace in other branches
- 6.2 panels.module \panels_ctools_plugin_directory()
- 7.3 panels.module \panels_ctools_plugin_directory()
Implementation of hook_ctools_plugin_directory() to let the system know we implement task and task_handler plugins.
File
- ./
panels.module, line 298 - panels.module
Code
function panels_ctools_plugin_directory($module, $plugin) {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
return;
}
if ($module == 'page_manager' || $module == 'panels' || $module == 'ctools') {
return 'plugins/' . $plugin;
}
}