You are here

function lingotek_get_sync_upload_config_batch_elements in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.batch.inc \lingotek_get_sync_upload_config_batch_elements()
  2. 7.4 lingotek.batch.inc \lingotek_get_sync_upload_config_batch_elements()
  3. 7.5 lingotek.batch.inc \lingotek_get_sync_upload_config_batch_elements()
  4. 7.6 lingotek.batch.inc \lingotek_get_sync_upload_config_batch_elements()

Sync - Upload Config Batch Elements: Creates the batch elements for config (ie. menus, taxonomies, etc.), that need to be uploaded.

1 call to lingotek_get_sync_upload_config_batch_elements()
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 198
Central location for batch create functions, before control is handed off to individual batch command files.

Code

function lingotek_get_sync_upload_config_batch_elements($upload_configs = array()) {
  $operations = array();
  if (is_array($upload_configs)) {
    foreach ($upload_configs as $cid) {
      $operations[] = array(
        'lingotek_sync_upload_config_chunk',
        array(
          $cid,
        ),
      );
    }
  }
  return $operations;
}