function lingotek_get_source_node in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.5 lingotek.util.inc \lingotek_get_source_node()
- 7.6 lingotek.util.inc \lingotek_get_source_node()
3 calls to lingotek_get_source_node()
File
- ./
lingotek.util.inc, line 2645 - 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);
}