function _i18nsync_node_translations in Internationalization 6
Get node translations if any, optionally excluding this node
Translations will be stored in the node itself so we have them cached
1 call to _i18nsync_node_translations()
- i18nsync_nodeapi in i18nsync/
i18nsync.module - Implementation of hook_nodeapi().
File
- i18nsync/
i18nsync.module, line 550 - Internationalization (i18n) package. Synchronization of translations
Code
function _i18nsync_node_translations($node, $exclude = FALSE) {
// Maybe translations are already here
if (!empty($node->tnid) && ($translations = translation_node_get_translations($node->tnid))) {
if ($exclude && $node->language) {
unset($translations[$node->language]);
}
return $translations;
}
}