You are here

function lingotek_get_sync_upload_config_batch_elements in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.3 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.

3 calls to lingotek_get_sync_upload_config_batch_elements()
drush_lingotek_push in ./lingotek.drush.inc
Callback function for drush command batch upload translatable content
lingotek_config_upload_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 204
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($set_ids = array(), $lid_map) {
  $operations = array();
  if (is_array($set_ids)) {
    foreach ($set_ids as $sid) {
      $operations[] = array(
        'lingotek_sync_upload_config_set',
        array(
          $sid,
          $lid_map,
        ),
      );
    }
  }
  return $operations;
}