You are here

function lingotek_sync_batch_finished in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.batch.inc \lingotek_sync_batch_finished()
  2. 7.4 lingotek.batch.inc \lingotek_sync_batch_finished()
  3. 7.5 lingotek.batch.inc \lingotek_sync_batch_finished()
  4. 7.6 lingotek.batch.inc \lingotek_sync_batch_finished()
1 string reference to 'lingotek_sync_batch_finished'
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 120
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));
}