You are here

function lingotek_setup_additional_translation_settings_form_submit in Lingotek Translation 7.3

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form_submit()
  2. 7.4 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form_submit()
  3. 7.5 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form_submit()
  4. 7.6 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form_submit()

File

./lingotek.setup.inc, line 853

Code

function lingotek_setup_additional_translation_settings_form_submit($form, &$form_state) {

  // WTD: process the submitted options
  lingotek_admin_additional_translation_settings_form_submit($form, $form_state);
  $_SESSION['lingotek_setup_path'][] = 'admin/config/lingotek/additional-translation-settings';
  $operations = array();
  $operations[] = array(
    'lingotek_cleanup_utility',
    array(
      FALSE,
    ),
  );
  $batch = array(
    'title' => t('Preparing additional translation settings'),
    'operations' => $operations,
  );
  batch_set($batch);
  drupal_set_message(t('You have completed setup successfully!'));
  $redirect = LINGOTEK_MENU_LANG_BASE_URL;
  batch_process($redirect);
}