You are here

function taxonomy_manager_double_tree_add_translation_submit in Taxonomy Manager 7

Submit handler for adding a translation.

1 string reference to 'taxonomy_manager_double_tree_add_translation_submit'
taxonomy_manager_double_tree_form in ./taxonomy_manager.admin.inc

File

./taxonomy_manager.admin.inc, line 2313

Code

function taxonomy_manager_double_tree_add_translation_submit($form, &$form_state) {
  $term1 = $form_state['values']['double_tree_values']['term1'];
  $term2 = $form_state['values']['double_tree_values']['term2'];
  $voc = $form_state['values']['double_tree_values']['voc'];
  taxonomy_manager_add_translation($term1, $term2, $voc);
  drupal_set_message(t("Translation for %term2 - %term1 added.", array(
    '%term2' => $term2->name,
    '%term1' => $term1->name,
  )));
}