You are here

function i18n_sync_node_translation_attached_node in Internationalization 7

Node attachments (CCK) that may have translation.

File

i18n_sync/i18n_sync.node.inc, line 75
Internationalization (i18n) package. Synchronization of translations

Code

function i18n_sync_node_translation_attached_node(&$node, &$translation, $field) {
  if ($attached = node_load($node->{$field})) {
    $translation->{$field} = i18n_sync_node_translation_reference_field($attached, $node->{$field}, $translation->language);
  }
}