From d5f3403a323383b65ce367e57415690491c538b1 Mon Sep 17 00:00:00 2001 From: Mac_Weber Date: Wed, 19 Nov 2014 11:17:28 -0200 Subject: [PATCH] Issue #2054803 by Mac_Weber, Kazanir: Fixed classes declared on module.info are not dynamically loaded on hook_ctools_plugin_type(). --- help/plugins-creating.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/help/plugins-creating.html b/help/plugins-creating.html index 29a9014..feec966 100644 --- a/help/plugins-creating.html +++ b/help/plugins-creating.html @@ -24,6 +24,17 @@ The following information can be specified for each plugin type:
cache table
Defaults to: 'cache'
If 'cache' is TRUE, then this value specifies the cache table where the cached plugin information will be stored.
+
classes
+
Defaults to: array()
+
An array of class identifiers(i.e. plugin array keys) which a plugin of this type uses to provide classes to the CTools autoloader. For example, if classes is set to array('class'), then CTools will search each $plugin['class'] for a class to autoload. Depending of the plugin structure, a class identifier may be either: +
+
- a file name:
+
the file which holds the class with the name structure as: [filename].[class].php
+
in this case the class name can be different than the class identifier
+
- the class name:
+
if the class is in the same file as the $plugin
+
the plugin .inc file can have a different name than the class identifier
+
defaults
Defaults to: array()
An array of defaults that should be added to each plugin; this can be used to ensure that every plugin has the basic data necessary. These defaults will not ovewrite data supplied by the plugin. This could also be a function name, in which case the callback will be used to provide defaults. NOTE, however, that the callback-based approach is deprecated as it is redundant with the 'process' callback, and as such will be removed in later versions. Consequently, you should only use the array form for maximum cross-version compatibility.
-- 1.8.5.1