You are here

function fb_social_ctools_plugin_directory in Facebook social plugins integration 6.2

Same name and namespace in other branches
  1. 7.2 fb_social.module \fb_social_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory().

File

./fb_social.module, line 242

Code

function fb_social_ctools_plugin_directory($module, $type) {

  // Safety: go away if CTools is not at an appropriate version.
  if (!module_invoke('ctools', 'api_version', FB_SOCIAL_REQUIRED_CTOOLS_API)) {
    return;
  }
  if ($module == 'fb_social' && $type == 'fb_plugin') {
    return 'plugins/fb_plugin';
  }
  elseif ($type == 'export_ui') {
    return 'plugins/export_ui';
  }
}