You are here

function content_panels_title_content in Content Construction Kit (CCK) 5

'Title' callback for the 'field' content type.

1 string reference to 'content_panels_title_content'
content_panels_content_types in ./content_panels.inc
Implementation of hook_panels_content_types()

File

./content_panels.inc, line 82

Code

function content_panels_title_content($conf, $context) {
  $data = explode(':', $conf['field_formatter']);
  $field_name = $data[0];
  $formatter = $data[1];
  $fields = content_fields();
  $field = $fields[$field_name];
  $field_types = _content_field_types();
  return t('"@s" field @name', array(
    '@s' => $context->identifier,
    '@name' => $field_types[$field['type']]['label'] . ': ' . $field['widget']['label'] . ' (' . $field['field_name'],
  )) . ')';
}