You are here

function party_hat_ctools_plugin_directory in Party 7

Same name and namespace in other branches
  1. 8.2 modules/party_hat/party_hat.module \party_hat_ctools_plugin_directory()

Implements hook_ctools_plugin_directory().

File

modules/party_hat/party_hat.module, line 719
party_hat.module Provides an extensible access system for parties.

Code

function party_hat_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'ctools' && $plugin_type == 'access') {
    return "plugins/{$plugin_type}";
  }
  if ($owner == 'ctools' && $plugin_type == 'contexts') {
    return "plugins/{$plugin_type}";
  }
}