You are here

function ctools_entity_field_content_type_content_type in Chaos Tool Suite (ctools) 7

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 'ctools_entity_field_content_type_content_type'
entity_field.inc in plugins/content_types/entity_context/entity_field.inc

File

plugins/content_types/entity_context/entity_field.inc, line 21

Code

function ctools_entity_field_content_type_content_type($subtype) {
  $types = ctools_entity_field_content_type_content_types();
  if (isset($types[$subtype])) {
    return $types[$subtype];
  }
}