security update core+modules
This commit is contained in:
@@ -116,6 +116,10 @@ The first form will always have required configuration added to it. These forms
|
||||
<dt>required context [Optional]</dt>
|
||||
|
||||
<dd>Either a ctools_context_required or ctools_context_optional or array of contexts for this content. If omitted, no contexts are used.</dd>
|
||||
|
||||
<dt>create content access [Optional]</dt>
|
||||
|
||||
<dd>An optional callback to determine if a user can access this subtype. The callback will receive two arguments, the type and subtype.</dd>
|
||||
</dl>
|
||||
|
||||
<h2>Rendered content</h2>
|
||||
|
@@ -156,6 +156,9 @@ function mymodule_schema() {
|
||||
<dt>to hook code callback</dt>
|
||||
<dd>Function used to generate an export for the bulk export process. This is only necessary if the export is more complicated than simply listing the fields. Defaults to $module . '_' . $table . '_to_hook_code'.</dt>
|
||||
|
||||
<dt>boolean</dt>
|
||||
<dd>Explicitly indicate if a table field contains a boolean or not. The Schema API does not model the
|
||||
difference between a tinyint and a boolean type. Boolean values are stored in tinyint fields. This may cause mismatch errors when exporting a non-boolean value from a tinyint field. Add this to a tinyint field if it contains boolean data and can be exported. Defaults to TRUE.
|
||||
|
||||
<dt>create callback</dt>
|
||||
<dd>CRUD callback to use to create a new exportable item in memory. If not provided, the default function will be used. The single argument is a boolean used to determine if defaults should be set on the object. This object will not be written to the database by this callback.</dd>
|
||||
|
@@ -24,6 +24,17 @@ The following information can be specified for each plugin type:
|
||||
<dt>cache table</dt>
|
||||
<dd><em>Defaults to:</em> <strong>'cache'</strong></dd>
|
||||
<dd>If 'cache' is TRUE, then this value specifies the cache table where the cached plugin information will be stored.</dd>
|
||||
<dt>classes</dt>
|
||||
<dd><em>Defaults to:</em> <strong>array()</strong></dd>
|
||||
<dd>An array of <em>class identifiers</em>(i.e. plugin array keys) which a plugin of this type uses to provide classes to the CTools autoloader. For example, if <strong>classes</strong> is set to array('class'), then CTools will search each <strong>$plugin['class']</strong> for a class to autoload. Depending of the plugin structure, a <em>class identifier</em> may be either:</dd>
|
||||
<dl>
|
||||
<dt>- a file name:</dt>
|
||||
<dd>the file which holds the class with the name structure as: <em>[filename].[class].php</em></dd>
|
||||
<dd>in this case the class name can be different than the <em>class identifier</em></dd>
|
||||
<dt>- the class name:</dt>
|
||||
<dd>if the class is in the same file as the $plugin</dd>
|
||||
<dd>the plugin <em>.inc</em> file can have a different name than the <em>class identifier</em></dd>
|
||||
</dl>
|
||||
<dt>defaults</dt>
|
||||
<dd><em>Defaults to:</em> <strong>array()</strong></dd>
|
||||
<dd>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.</dd>
|
||||
|
Reference in New Issue
Block a user