function ctools_custom_content_type_content_type in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/content_types/custom/custom.inc \ctools_custom_content_type_content_type()
Return the custom content types with the specified $subtype_id.
3 calls to ctools_custom_content_type_content_type()
- ctools_custom_content_type_admin_info in plugins/
content_types/ custom/ custom.inc - Callback to provide administrative info. In this case we'll render the content as long as it's not PHP, which is too risky to render here.
- ctools_custom_content_type_admin_title in plugins/
content_types/ custom/ custom.inc - Callback to provide the administrative title of the custom content.
- ctools_custom_content_type_render in plugins/
content_types/ custom/ custom.inc - Output function for the 'custom' content type. Outputs a custom based on the module and delta supplied in the configuration.
File
- plugins/
content_types/ custom/ custom.inc, line 31 - Custom content type.
Code
function ctools_custom_content_type_content_type($subtype_id) {
if ($subtype_id == 'custom') {
return _ctools_default_content_type_content_type();
}
else {
ctools_include('export');
$content = ctools_export_crud_load('ctools_custom_content', $subtype_id);
if ($content) {
return _ctools_custom_content_type_content_type($content);
}
}
}