function taxonomy_form_term_submit_build_taxonomy_term

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

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.