Closed (fixed)
Project:
Bean (for Drupal 7)
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Apr 2013 at 12:14 UTC
Updated:
12 May 2013 at 18:30 UTC
CTools registry checks the class if it's present (in Beans it's called handler) so it will expect the path and file defined at class level and not plugin level, it doesn't matter regarding the path but the file has no fallback to the plugin.
$class = $plugin_definition[$class_key]['class'];
// Use the filename if it's explicitly set, else follow the naming
// conventions.
$filename = isset($plugin_definition[$class_key]['file']) ? $plugin_definition[$class_key]['file'] : $class . '.class.php';
$base_path = isset($plugin_definition[$class_key]['path']) ? $plugin_definition[$class_key]['path'] : $plugin_definition['path'];Fixing the documentation in the api.php so as to avoid these kind of misunderstandings: #1397534: Missing files from module.
| Comment | File | Size | Author |
|---|---|---|---|
| bean-fix_documentation_ctools_plugin.patch | 1.16 KB | pcambra |
Comments
Comment #1
pcambraAlso related #1376902: Plugin container of plugin type bean:types points to nonexistent file
Comment #2
saltednutLooks good - thanks for pointing this out.
http://drupalcode.org/project/bean.git/blobdiff/d4038e7456f2400909c67cdd...