function service_links_ctools_plugin_directory in Service links 7.2
Implements hook_ctools_plugin_directory().
File
- ./
service_links.module, line 1079 - Adds social network links to the content.
Code
function service_links_ctools_plugin_directory($module, $plugin) {
// Also Prevent PHP warnings for undefined constants.
if (defined('PANELS_REQUIRED_CTOOLS_API')) {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
return;
}
return 'plugins/' . $plugin;
}
}