function 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
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;
}