You are here

function lingotek_setup_additional_translation_settings_form in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
  2. 7.3 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
  3. 7.5 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
  4. 7.6 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
1 string reference to 'lingotek_setup_additional_translation_settings_form'
lingotek_menu in ./lingotek.module
Implements hook_menu().

File

./lingotek.setup.inc, line 943

Code

function lingotek_setup_additional_translation_settings_form($form, &$form_state) {
  $form = lingotek_admin_additional_translation_settings_form($form, $form_state);
  if (is_array($_SESSION['lingotek_setup_path'])) {
    if (end($_SESSION['lingotek_setup_path']) == 'admin/config/lingotek/additional-translation-settings') {
      $null = array_pop($_SESSION['lingotek_setup_path']);
    }

    // if the user went back, remove the last element, which is this page.
    $form['additional_translation']['actions']['lingotek_back_button'] = lingotek_setup_link(end($_SESSION['lingotek_setup_path']), t('Previous Step'));
  }
  $form['additional_translation']['#submit'] = 'lingotek_setup_additional_translation_settings_form_submit';
  unset($form['additional_translation']['actions']['submit']);
  $form['additional_translation']['actions']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Finish'),
  );
  $form['lingotek_support_footer'] = lingotek_support_footer();
  return $form;
}