function og_subgroups_ctools_plugin_directory in Subgroups for Organic groups 7
Same name and namespace in other branches
- 7.2 og_subgroups.module \og_subgroups_ctools_plugin_directory()
Implementation of hook_ctools_plugin_directory().
File
- ./
og_subgroups.module, line 11 - Enable defining hierarchy of groups for organic groups.
Code
function og_subgroups_ctools_plugin_directory($module, $plugin) {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', OG_REQUIRED_CTOOLS_API)) {
return;
}
if ($module == 'ctools') {
return 'plugins/' . $plugin;
}
}