You are here

function content_content_field_content_type_content_type in Content Construction Kit (CCK) 6.2

Same name and namespace in other branches
  1. 6.3 includes/panels/content_types/content_field.inc \content_content_field_content_type_content_type()

Just one subtype.

Ordinarily this function is meant to get just one subtype. However, we are using it to deal with the fact that we have changed the subtype names. This lets us translate the name properly.

1 string reference to 'content_content_field_content_type_content_type'
content_content_field_ctools_content_types in includes/panels/content_types/content_field.inc
Callback function to supply a list of content types.

File

includes/panels/content_types/content_field.inc, line 69
This file provides a CTools content type for fields.

Code

function content_content_field_content_type_content_type($subtype) {

  // 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);
  }
  $types = content_content_field_content_type_content_types();
  if (isset($types[$subtype])) {
    return $types[$subtype];
  }
}