You are here

function ds_test_ctools_plugin_directory in Display Suite 7

Implements hook_ctools_plugin_directory().

File

tests/ds_test.module, line 86
Display Suite test module.

Code

function ds_test_ctools_plugin_directory($module, $plugin) {

  // Safety: go away if CTools is not at an appropriate version.
  if (!module_invoke('ctools', 'api_version', PANELS_REQUIRED_CTOOLS_API)) {
    return;
  }
  if ($module == 'panels') {
    return 'plugins/' . $plugin;
  }
}