You are here

function i18n_taxonomy_form_vocabulary_submit in Internationalization 7

Form submit callback to redirect when using the save and translate button.

1 string reference to 'i18n_taxonomy_form_vocabulary_submit'
i18n_taxonomy_form_taxonomy_form_vocabulary_alter in i18n_taxonomy/i18n_taxonomy.module
Implements hook_form_FORM_ID_alter()

File

i18n_taxonomy/i18n_taxonomy.module, line 737
i18n taxonomy module

Code

function i18n_taxonomy_form_vocabulary_submit($form, &$form_state) {
  if ($form_state['triggering_element']['#name'] == 'save_translate') {
    $form_state['redirect'] = 'admin/structure/taxonomy/' . $form_state['values']['machine_name'] . '/translate';
  }
}