You are here

function i18nsync_node_translation_attached_node in Internationalization 6

Same name and namespace in other branches
  1. 5.3 experimental/i18nsync.module \i18nsync_node_translation_attached_node()
  2. 5 experimental/i18nsync.module \i18nsync_node_translation_attached_node()
  3. 5.2 experimental/i18nsync.module \i18nsync_node_translation_attached_node()

Node attachments (CCK) that may have translation.

1 call to i18nsync_node_translation_attached_node()
i18nsync_node_translation in i18nsync/i18nsync.module
Synchronizes fields for node translation.

File

i18nsync/i18nsync.module, line 363
Internationalization (i18n) package. Synchronization of translations

Code

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