You are here

function configurable_breadcrumbs_ctools_plugin_directory in Panels Extras 6

Same name and namespace in other branches
  1. 7 configurable_breadcrumbs/configurable_breadcrumbs.module \configurable_breadcrumbs_ctools_plugin_directory()

Implementation of hook_ctools_plugin_directory() to let the system know where our task and task_handler plugins are.

File

configurable_breadcrumbs/configurable_breadcrumbs.module, line 8

Code

function configurable_breadcrumbs_ctools_plugin_directory($owner, $plugin_type) {
  $allowed_owners = array(
    'ctools',
    'page_manager',
  );
  if (!in_array($owner, $allowed_owners)) {
    return;
  }
  $allowed_plugin_types = array(
    'content_types',
  );
  if (!in_array($plugin_type, $allowed_plugin_types)) {
    return;
  }
  return "plugins/{$plugin_type}";
}