| 7 field_test.entity.inc | field_test_entity_info_translatable($entity_type = NULL, $translatable = NULL) |
| 8 field_test.entity.inc | field_test_entity_info_translatable($entity_type = NULL, $translatable = NULL) |
Helper function to enable entity translations.
9 calls to field_test_entity_info_translatable()
File
- modules/
field/ tests/ field_test.entity.inc, line 140 - Defines an entity type.
Code
function field_test_entity_info_translatable($entity_type = NULL, $translatable = NULL) {
drupal_static_reset('field_has_translation_handler');
$stored_value = &drupal_static(__FUNCTION__, array());
if (isset($entity_type)) {
$stored_value[$entity_type] = $translatable;
entity_info_cache_clear();
}
return $stored_value;
}
Login or register to post comments