function lingotek_mt_sync_download_node_target in Lingotek Translation 7.2
Download Batch Worker Function: Download Translated Node Content
1 call to lingotek_mt_sync_download_node_target()
- lingotek_notifications in ./
lingotek.sync.inc - Registers the site translation notfication callback. This URL will be called when a document translation is complete, and can be downloaded.
1 string reference to 'lingotek_mt_sync_download_node_target'
- lingotek_get_sync_download_batch_elements in ./
lingotek.batch.inc - Sync - Download Batch Elements: Creates the batch elements for nodes/documents that need to be downloaded.
File
- ./
lingotek.batch.inc, line 420
Code
function lingotek_mt_sync_download_node_target($nid, $lingotek_locale, &$context) {
watchdog('ltk_download_target', 'node: @node_id (@language)', array(
'@node_id' => $nid,
'@language' => $lingotek_locale,
), WATCHDOG_DEBUG);
$node = node_load($nid);
lingotek_download_document($node, $lingotek_locale);
$context['results'][] = t('Download Target Translation: Node #@nid (@langcode)', array(
'@nid' => $nid,
'@langcode' => $lingotek_locale,
));
}