You are here

masquerade_ctools.module in Masquerade Extras 7

Allows Ctools to look for masquerade plugins.

File

masquerade_ctools/masquerade_ctools.module
View source
<?php

/**
 * @file
 *  Allows Ctools to look for masquerade plugins.
 */

/**
 * Implements hook_ctools_plugin_directory().
 *
 * Tell ctools where to look for plugins.
 *
 * @see hook_ctools_plugin_directory()
 */
function masquerade_ctools_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'ctools') {
    return "plugins/{$plugin_type}";
  }
  return '';
}