function ctools_plugin_example_ctools_plugin_directory

Implements hook_ctools_plugin_directory().

It simply tells panels where to find the .inc files that define various args, contexts, content_types. In this case the subdirectories of ctools_plugin_example/panels are used.

File

ctools_plugin_example/ctools_plugin_example.module, line 50

Code

function ctools_plugin_example_ctools_plugin_directory($module, $plugin) {
    if ($module == 'ctools' && !empty($plugin)) {
        return "plugins/{$plugin}";
    }
}