You are here

function field_test_entity_info_alter in SimpleTest 7

Implement hook_entity_info_alter().

File

tests/field_test.module, line 94

Code

function field_test_entity_info_alter(&$entity_info) {

  // Enable/disable field_test as a translation handler.
  foreach (field_test_entity_info_translatable() as $obj_type => $translatable) {
    $entity_info[$obj_type]['translation']['field_test'] = $translatable;
  }

  // Disable locale as a translation handler.
  foreach (field_info_fieldable_types() as $obj_type => $info) {
    $entity_info[$obj_type]['translation']['locale'] = FALSE;
  }
}