You are here

function og_ctools_plugin_directory in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og.module \og_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory().

File

./og.module, line 378
Enable users to create and manage groups with roles and permissions.

Code

function og_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' || $module == 'og_migrate') {
    return 'plugins/' . $plugin;
  }
}