function lingotek_get_source_node in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.util.inc \lingotek_get_source_node()
- 7.6 lingotek.util.inc \lingotek_get_source_node()
2 calls to lingotek_get_source_node()
- lingotek_node_view in ./
lingotek.module - Implements hook_node_view().
- lingotek_process_entity_xml in ./
lingotek.remote.inc
File
- ./
lingotek.util.inc, line 2011 - Utility functions.
Code
function lingotek_get_source_node($node) {
if (!empty($node->tnid)) {
return lingotek_entity_load_single('node', $node->tnid);
}
return lingotek_entity_load_single('node', $node->nid);
}