You are here

function rate_ctools_plugin_directory in Rate 7

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

./rate.module, line 171
Rate module

Code

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