You are here

function vud_ctools_plugin_directory in Vote Up/Down 7

Same name and namespace in other branches
  1. 6.3 vud.module \vud_ctools_plugin_directory()
  2. 6.2 vud.module \vud_ctools_plugin_directory()
  3. 7.2 vud.module \vud_ctools_plugin_directory()

Implements hook_ctools_plugin_directory().

File

./vud.module, line 185
Implements the core voting module on top of Voting API.

Code

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';
  }
}