taxonomy_form_term_submit

  1. drupal
    1. 4.7
    2. 5 taxonomy.module
    3. 6 taxonomy.admin.inc
    4. 7 taxonomy.admin.inc
Versions
4.7 – 5 taxonomy_form_term_submit($form_id, $form_values)
6 – 7 taxonomy_form_term_submit($form, &$form_state)

Accept the form submission for a taxonomy term and save the result.

Code

modules/taxonomy.module, line 407

<?php
function taxonomy_form_term_submit($form_id, $form_values) {
  switch (taxonomy_save_term($form_values)) {
    case SAVED_NEW:
      drupal_set_message(t('Created new term %term.', array('%term' => theme('placeholder', $form_values['name']))));
      break;
    case SAVED_UPDATED:
      drupal_set_message(t('The term %term has been updated.', array('%term' => theme('placeholder', $form_values['name']))));
      break;
  }
  return 'admin/taxonomy';
}
?>