You are here

function masquerade_ctools_ctools_plugin_directory in Masquerade Extras 7.2

Same name and namespace in other branches
  1. 6.2 masquerade_ctools/masquerade_ctools.module \masquerade_ctools_ctools_plugin_directory()
  2. 6 masquerade_ctools/masquerade_ctools.module \masquerade_ctools_ctools_plugin_directory()
  3. 7 masquerade_ctools/masquerade_ctools.module \masquerade_ctools_ctools_plugin_directory()

Implements hook_ctools_plugin_directory().

Tell ctools where to look for plugins.

See also

hook_ctools_plugin_directory()

File

masquerade_ctools/masquerade_ctools.module, line 14
Allows Ctools to look for masquerade plugins.

Code

function masquerade_ctools_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'ctools') {
    return "plugins/{$plugin_type}";
  }
  return '';
}