You are here

function og_ui_ctools_plugin_directory in Organic groups 7

Same name and namespace in other branches
  1. 7.2 og_ui/og_ui.module \og_ui_ctools_plugin_directory()

Implements hook_ctools_plugin_directory().

File

og_ui/og_ui.module, line 181
Organic groups UI.

Code

function og_ui_ctools_plugin_directory($module, $plugin) {

  // Safety: go away if CTools is not at an appropriate version.
  if (!module_invoke('ctools', 'api_version', OG_MIGRATE_REQUIRED_CTOOLS_API)) {
    return;
  }
  if ($module == 'ctools' || $module == 'og_migrate') {
    return 'plugins/' . $plugin;
  }
}