You are here

function taxonomy_form_term_submit_build_taxonomy_term in Drupal 7

Updates the form state's term entity by processing this submission's values.

1 call to taxonomy_form_term_submit_build_taxonomy_term()
taxonomy_form_term_submit in modules/taxonomy/taxonomy.admin.inc
Submit handler to insert or update a term.

File

modules/taxonomy/taxonomy.admin.inc, line 856
Administrative page callbacks for the taxonomy module.

Code

function taxonomy_form_term_submit_build_taxonomy_term($form, &$form_state) {
  $term = $form_state['term'];
  entity_form_submit_build_entity('taxonomy_term', $term, $form, $form_state);

  // Convert text_format field into values expected by taxonomy_term_save().
  $description = $form_state['values']['description'];
  $term->description = $description['value'];
  $term->format = $description['format'];
  return $term;
}