function lingotek_mt_sync_set_status in Lingotek Translation 7.2
Same name and namespace in other branches
- 7.3 lingotek.batch.inc \lingotek_mt_sync_set_status()
- 7.4 lingotek.batch.inc \lingotek_mt_sync_set_status()
Sets and clears session sync flags.
2 string references to 'lingotek_mt_sync_set_status'
- lingotek_sync_batch_create in ./
lingotek.batch.inc - Batch Create - Sync: Uploads new and changed documents for translation and Downloads translated documents.
- lingotek_sync_batch_create_old in ./
lingotek.batch.inc
File
- ./
lingotek.batch.inc, line 432
Code
function lingotek_mt_sync_set_status($status, &$context) {
switch ($status) {
case 'set':
$_SESSION['lingotek_sync_in_progress'] = 'syncing';
break;
case 'clear':
if (isset($_SESSION['lingotek_sync_in_progress'])) {
unset($_SESSION['lingotek_sync_in_progress']);
}
break;
}
}