function lingotek_edit_defaults_form_submit in Lingotek Translation 7.7
Edit defaults - Form Submit
File
- ./
lingotek.setup.inc, line 455
Code
function lingotek_edit_defaults_form_submit($form, $form_state) {
$new_project_id = $form_state['values']['lingotek_project'];
$new_workflow_id = $form_state['values']['lingotek_workflow'];
$new_vault_id = $form_state['values']['lingotek_vault'];
variable_set('lingotek_project', $new_project_id);
variable_set('lingotek_workflow', $new_workflow_id);
variable_set('lingotek_vault', $new_vault_id);
drupal_set_message(t('Your Lingotek project, workflow, and vault selections have been saved.'));
drupal_goto(LINGOTEK_MENU_MAIN_BASE_URL . '/settings');
}