You are here

function views_content_ctools_plugin_directory in Chaos Tool Suite (ctools) 7

Same name and namespace in other branches
  1. 6 views_content/views_content.module \views_content_ctools_plugin_directory()

Implements hook_ctools_plugin_dierctory().

To let the system know where our content_type plugins are.

File

views_content/views_content.module, line 35
Provides views as panels content, configurable by the administrator. Each view provided as panel content must be configured in advance, but once configured, building panels with views is a little bit simpler.

Code

function views_content_ctools_plugin_directory($owner, $plugin_type) {
  if ($owner == 'ctools') {
    return 'plugins/' . $plugin_type;
  }
}