You are here

function tft_edit_term_form_submit in Taxonomy File Tree 7

Same name and namespace in other branches
  1. 7.2 includes/tft.pages.inc \tft_edit_term_form_submit()

Submission callback

See also

tft_edit_term_form()

File

./tft.admin.inc, line 505

Code

function tft_edit_term_form_submit($form, &$form_state) {

  // Update the term name
  db_update('taxonomy_term_data')
    ->fields(array(
    'name' => $form_state['values']['name'],
  ))
    ->condition('tid', $form_state['values']['tid'])
    ->execute();
  drupal_set_message(t("The folder '@name' was updated.", array(
    '@name' => $form_state['values']['name'],
  )));
}