You are here

function fix_failed_language_specific_form_submit in Lingotek Translation 7.7

Runs the batch to fix failed language-specific targets

File

./lingotek.util.inc, line 3433
Utility functions.

Code

function fix_failed_language_specific_form_submit($form, &$form_state) {
  $entity_type = $form_state['values']['entity_type'];
  $entity_ids = $form_state['values']['entity_ids'];
  $operations = lingotek_get_add_language_specific_operations($entity_type, $entity_ids);
  $batch = array(
    'title' => t('Adding language-specific translations'),
    'operations' => $operations,
    'finished' => 'lingotek_add_language_specific_targets_finished',
  );
  batch_set($batch);
}