You are here

function skinr_ctools_plugin_directory in Skinr 6.2

Same name and namespace in other branches
  1. 6 modules/panels.skinr.inc \skinr_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory() to let the system know we implement panels plugins.

Related topics

File

modules/panels.skinr.inc, line 418
Provide skinr handling for panels.module.

Code

function skinr_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 'modules/panels';
  }
}