You are here

function lingotek_post_download_workbench_moderation in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.3 lingotek.sync.inc \lingotek_post_download_workbench_moderation()
1 call to lingotek_post_download_workbench_moderation()
lingotek_form_bulk_sync_submit in ./lingotek.sync.inc
Submit handler for the lingotek_form_bulk_sync form. Calls the function that creates a batch job to do bulk sync.

File

./lingotek.sync.inc, line 782
Sync and management

Code

function lingotek_post_download_workbench_moderation($options_index, $document_ids = array(), $trans_options = array(), $automatic_moderate = FALSE) {
  $operations = array();
  if ($automatic_moderate) {
    foreach ($document_ids as $document_id) {
      $nid = LingotekSync::getNodeIdFromDocId($document_id);
      $operations[] = array(
        'lingotek_workbench_moderation_moderate',
        array(
          $nid,
          $options_index,
          $trans_options,
        ),
      );
    }
  }
  return $operations;
}