You are here

region_pane.module in Panels Extras 6

Same filename and directory in other branches
  1. 7 region_pane/region_pane.module

File

region_pane/region_pane.module
View source
<?php

// $Id$ region_pane.module,v 1.0 2011/03/17 16:50:48 chriscalip Exp $

/**
 * Implementation of hook_ctools_plugin_directory() to let the system know
 * where our task and task_handler plugins are.
 */
function region_pane_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',
    'tasks',
  );
  if (!in_array($plugin_type, $allowed_plugin_types)) {
    return;
  }
  return "plugins/{$plugin_type}";
}

Functions

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