You are here

function lingotek_sync_batch_finished in Lingotek Translation 7.6

Same name and namespace in other branches
  1. 7.7 lingotek.batch.inc \lingotek_sync_batch_finished()
  2. 7.3 lingotek.batch.inc \lingotek_sync_batch_finished()
  3. 7.4 lingotek.batch.inc \lingotek_sync_batch_finished()
  4. 7.5 lingotek.batch.inc \lingotek_sync_batch_finished()
2 string references to 'lingotek_sync_batch_finished'
lingotek_config_download_selected in ./lingotek.config.inc
lingotek_sync_batch_create in ./lingotek.batch.inc
Batch Create - Sync: Uploads new and changed documents for translation and Downloads translated documents.

File

./lingotek.batch.inc, line 134
Central location for batch create functions, before control is handed off to individual batch command files.

Code

function lingotek_sync_batch_finished($success, $results, $operations) {
  $downloads = isset($results['downloads']) ? $results['downloads'] : 0;
  $uploads = isset($results['uploads']) ? $results['uploads'] : 0;
  $message = "[Lingotek Sync] uploads:" . $uploads . ", downloads: " . $downloads;

  // $message .= empty($download_commands_inc) ? '' : " (" . count($download_commands_inc) . " incomplete translations)";
  drupal_set_message(check_plain($message));
}