function i18nsync_node_translation_attached_node in Internationalization 6
Same name and namespace in other branches
- 5.3 experimental/i18nsync.module \i18nsync_node_translation_attached_node()
- 5 experimental/i18nsync.module \i18nsync_node_translation_attached_node()
- 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);
}
}