function ctools_custom_content_type_admin_title in Chaos Tool Suite (ctools) 7
Same name and namespace in other branches
- 6 plugins/content_types/custom/custom.inc \ctools_custom_content_type_admin_title()
Callback to provide the administrative title of the custom content.
File
- plugins/
content_types/ custom/ custom.inc, line 210 - Custom content type.
Code
function ctools_custom_content_type_admin_title($subtype, $conf) {
$settings = ctools_custom_content_type_get_conf(ctools_custom_content_type_content_type($subtype), $conf);
$output = t('Custom');
$title = !empty($settings['admin_title']) ? $settings['admin_title'] : $settings['title'];
if ($title) {
if ($settings['custom_type'] != 'fixed') {
$output = t('Custom: @title', array(
'@title' => $title,
));
}
else {
$output = $title;
}
}
return $output;
}