function _ctools_block_content_type_content_type
Return an info array for a specific block.
2 calls to _ctools_block_content_type_content_type()
- ctools_block_content_type_content_type in plugins/
content_types/ block/ block.inc - Return the block content types with the specified $subtype_id.
- ctools_block_content_type_content_types in plugins/
content_types/ block/ block.inc - Return all block content types available.
File
-
plugins/
content_types/ block/ block.inc, line 68
Code
function _ctools_block_content_type_content_type($module, $delta, $block) {
// strip_tags used because it goes through check_plain and that
// just looks bad.
$info = array(
'title' => strip_tags($block['info']),
);
// Ask around for further information by invoking the hook_block() extension.
$function = $module . '_ctools_block_info';
if (!function_exists($function)) {
$function = 'ctools_default_block_info';
}
$function($module, $delta, $info);
return $info;
}