function content_content_field_content_type_admin_title in Content Construction Kit (CCK) 6.2
Same name and namespace in other branches
- 6.3 includes/panels/content_types/content_field.inc \content_content_field_content_type_admin_title()
Admin title for field content type.
File
- includes/
panels/ content_types/ content_field.inc, line 195 - This file provides a CTools content type for fields.
Code
function content_content_field_content_type_admin_title($subtype, $conf, $context) {
// Previous versions of CCK included the content type as part of the subtype.
// This allows those to continue to sort of work, at least during render.
if (strpos($subtype, ':') !== FALSE) {
list($content_type, $subtype) = explode(':', $subtype, 2);
}
// Get all fields on the site.
$field_types = _content_field_types();
// Get all the information about our field.
$field = content_fields($subtype);
return t('"@s" field: @widget_label (@field_name) - @field_type', array(
'@s' => $context->identifier,
'@widget_label' => t($field['widget']['label']),
'@field_name' => $subtype,
'@field_type' => t($field_types[$field['type']]['label']),
));
}