You are here

function i18n_sync_field_info_alter in Internationalization 7

Implements hook_field_info_alter()

File

i18n_sync/i18n_sync.module, line 64
Internationalization (i18n) package. Synchronization of translations

Code

function i18n_sync_field_info_alter(&$fields) {
  foreach (array(
    'file',
    'image',
  ) as $type) {
    if (isset($fields[$type])) {
      $fields[$type]['i18n_sync_callback'] = 'i18n_sync_field_file_sync';
    }
  }
}