function lingotek_setup_additional_translation_settings_form in Lingotek Translation 7.6
Same name and namespace in other branches
- 7.7 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
- 7.3 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
- 7.4 lingotek.setup.inc \lingotek_setup_additional_translation_settings_form()
- 7.5 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 822
Code
function lingotek_setup_additional_translation_settings_form($form, &$form_state) {
drupal_add_js(drupal_get_path('module', 'lingotek') . '/js/lingotek.admin.js');
$form = lingotek_admin_additional_translation_settings_form($form, $form_state);
if (!empty($_SESSION['lingotek_setup_path'])) {
if (end($_SESSION['lingotek_setup_path']) == lingotek_get_entity_setup_path('config')) {
$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'] = array(
'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;
}