function translation_entity_field_info_alter

Implements hook_field_info_alter().

File

drupal/core/modules/translation_entity/translation_entity.module, line 855
Allows entities to be translated into different languages.

Code

function translation_entity_field_info_alter(&$info) {
  foreach ($info as $field_type => &$field_type_info) {

    // By default no column has to be synchronized.
    $field_type_info['settings'] += array(
      'translation_sync' => FALSE,
    );

    // Synchronization can be enabled per instance.
    $field_type_info['instance_settings'] += array(
      'translation_sync' => FALSE,
    );
  }
}