ctools_block_content_type_admin_title
Drupal 7 ctools_block_content_type_admin_title($subtype, $conf)
Returns the administrative title for a type.
File
- sites/
all/ modules/ ctools/ plugins/ content_types/ block/ block.inc, line 210 - Provide Drupal blocks as content.
Code
function ctools_block_content_type_admin_title($subtype, $conf) {
list($module, $delta) = _ctools_block_get_module_delta($subtype, $conf);
$block = module_invoke($module, 'block_info');
if (empty($block) || empty($block[$delta])) {
return t('Deleted/missing block @module-@delta', array('@module' => $module, '@delta' => $delta));
}
// The block description reported by hook_block() is plain text, but the title
// reported by this hook should be HTML.
$title = check_plain($block[$delta]['info']);
return $title;
}

