1 field.multilingual.inc | field_is_translatable($entity_type, $field) |
Checks whether a field has language support.
A field has language support enabled if its 'translatable' property is set to TRUE, and its entity type has at least one translation handler registered.
Parameters
$entity_type: The type of the entity the field is attached to.
$field: A field data structure.
Return value
TRUE if the field can be translated.:
Related topics
File
- core/
modules/ field/ field.multilingual.inc, line 188 - Functions implementing Field API multilingual support.
Code
function field_is_translatable($entity_type, $field) {
return $field['translatable'] && field_has_translation_handler($entity_type);
}