function ctools_content_prepare_subtype in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 includes/content.inc \ctools_content_prepare_subtype()
Ensure minimal required settings on a content subtype exist.
2 calls to ctools_content_prepare_subtype()
- ctools_content_get_subtype in includes/
content.inc - Given a content type and a subtype id, return the information about that content subtype.
- ctools_content_get_subtypes in includes/
content.inc - Get all of the individual subtypes provided by a given content type. This would be all of the blocks for the block type, or all of the views for the view type.
File
- includes/
content.inc, line 225 - Contains the tools to handle pluggable content that can be used by other applications such as Panels or Dashboard.
Code
function ctools_content_prepare_subtype(&$subtype, $plugin) {
foreach (array(
'path',
'js',
'css',
) as $key) {
if (!isset($subtype[$key]) && isset($plugin[$key])) {
$subtype[$key] = $plugin[$key];
}
}
}