Created
February 7, 2013 11:41
-
-
Save amitaibu/4730439 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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