function lingotek_get_sync_upload_batch_elements in Lingotek Translation 7.5
Same name and namespace in other branches
- 7.7 lingotek.batch.inc \lingotek_get_sync_upload_batch_elements()
- 7.2 lingotek.batch.inc \lingotek_get_sync_upload_batch_elements()
- 7.3 lingotek.batch.inc \lingotek_get_sync_upload_batch_elements()
- 7.4 lingotek.batch.inc \lingotek_get_sync_upload_batch_elements()
- 7.6 lingotek.batch.inc \lingotek_get_sync_upload_batch_elements()
Sync - Upload Batch Elements: Creates the batch elements for nodes/documents that need to be uploaded.
1 call to lingotek_get_sync_upload_batch_elements()
- lingotek_grid_action_submit in ./
lingotek.bulk_grid.inc - Submit function for The Grid's actions The action corresponds to the key of the option selected Often redirects to batch operations or to other pages entirely
File
- ./
lingotek.batch.inc, line 146 - Central location for batch create functions, before control is handed off to individual batch command files.
Code
function lingotek_get_sync_upload_batch_elements($entity_type, $upload_nids = array()) {
$operations = array();
if (is_array($upload_nids)) {
foreach ($upload_nids as $nid) {
$operations[] = array(
'lingotek_entity_upload',
array(
$nid,
$entity_type,
),
);
}
}
return $operations;
}