function i18n_taxonomy_form_term_submit in Internationalization 7
Form submit callback to redirect when using the save and translate button.
1 string reference to 'i18n_taxonomy_form_term_submit'
- i18n_taxonomy_form_taxonomy_form_term_alter in i18n_taxonomy/i18n_taxonomy.module 
- Implements hook_form_FORM_ID_alter()
File
- i18n_taxonomy/i18n_taxonomy.module, line 887 
- i18n taxonomy module
Code
function i18n_taxonomy_form_term_submit($form, &$form_state) {
  if ($form_state['triggering_element']['#name'] == 'save_translate') {
    // When using the edit link on the list terms, a destination param is
    // added that needs to be unset to make the redirection work.
    unset($_GET['destination']);
    $form_state['redirect'] = 'taxonomy/term/' . $form_state['values']['tid'] . '/translate';
  }
}