function lingotek_get_add_language_specific_operations in Lingotek Translation 7.7
Get the operations for the "Add language-specific translations" bulk action
2 calls to lingotek_get_add_language_specific_operations()
- fix_failed_language_specific_form_submit in ./
lingotek.util.inc - Runs the batch to fix failed language-specific targets
- lingotek_add_language_specific_targets_batch_create in ./
lingotek.batch.inc - Batch worker function for adding language-specific targets
File
- ./
lingotek.batch.inc, line 726 - Central location for batch create functions, before control is handed off to individual batch command files.
Code
function lingotek_get_add_language_specific_operations($entity_type, $entity_ids) {
$operations = array();
if (is_array($entity_ids)) {
foreach ($entity_ids as $entity_id) {
$operations[] = array(
'lingotek_add_language_specific_targets',
array(
$entity_type,
$entity_id,
),
);
}
}
return $operations;
}