Skip to content

Instantly share code, notes, and snippets.

@amitaibu
Created February 7, 2013 11:41
Show Gist options
  • Save amitaibu/4730439 to your computer and use it in GitHub Desktop.
Save amitaibu/4730439 to your computer and use it in GitHub Desktop.
/**
* Implements hook_ctools_plugin_directory().
*/
function vud_ctools_plugin_directory($module, $type) {
// Safety: go away if CTools is not at an appropriate version.
if (!module_invoke('ctools', 'api_version', VUD_REQUIRED_CTOOLS_API)) {
return;
}
if ($module == 'vud' && $type == 'widgets') {
return 'widgets';
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment