You are here

function field_test_entity_info_translatable in SimpleTest 7

Helper function to enable entity translations.

1 call to field_test_entity_info_translatable()
field_test_entity_info_alter in tests/field_test.module
Implement hook_entity_info_alter().

File

tests/field_test.module, line 672

Code

function field_test_entity_info_translatable($obj_type = NULL, $translatable = NULL) {
  $stored_value =& drupal_static(__FUNCTION__, array());
  if (isset($obj_type)) {
    $stored_value[$obj_type] = $translatable;
    _field_info_collate_types(TRUE);
  }
  return $stored_value;
}