You are here

function lingotek_admin_setup_nonbuiltins_batch in Lingotek Translation 7.7

Same name and namespace in other branches
  1. 7.4 lingotek.admin.inc \lingotek_admin_setup_nonbuiltins_batch()
  2. 7.5 lingotek.admin.inc \lingotek_admin_setup_nonbuiltins_batch()
  3. 7.6 lingotek.admin.inc \lingotek_admin_setup_nonbuiltins_batch()
2 calls to lingotek_admin_setup_nonbuiltins_batch()
drush_lingotek_prepare_item in ./lingotek.drush.inc
lingotek_admin_additional_translation_settings_form_submit in ./lingotek.admin.inc

File

./lingotek.admin.inc, line 1090

Code

function lingotek_admin_setup_nonbuiltins_batch($operations) {
  $batch = array(
    'operations' => $operations,
    'title' => 'Site translation preparation',
    'init_message' => t('Preparing to run batch actions'),
    'progress_message' => t('Processed @current out of @total.'),
    'error_message' => t('An error has occurred during setup.  Please review the log for more information.'),
    'file' => drupal_get_path('module', 'lingotek') . '/lingotek.admin.inc',
  );
  if ($operations && count($operations)) {
    batch_set($batch);
  }
}