function ctools_block_content_type_content_type in Chaos Tool Suite (ctools) 6
Same name and namespace in other branches
- 7 plugins/content_types/block/block.inc \ctools_block_content_type_content_type()
Return the block content types with the specified $subtype_id.
1 string reference to 'ctools_block_content_type_content_type'
File
- plugins/
content_types/ block/ block.inc, line 27 - Provide Drupal blocks as content.
Code
function ctools_block_content_type_content_type($subtype_id) {
list($module, $delta) = explode('-', $subtype_id, 2);
$module_blocks = module_invoke($module, 'block', 'list');
if (isset($module_blocks[$delta])) {
return _ctools_block_content_type_content_type($module, $delta, $module_blocks[$delta]);
}
}