function taxonomy_form_term_submit_build_taxonomy_term
taxonomy_form_term_submit_build_taxonomy_term($form, &$form_state)
Updates the form state's term entity by processing this submission's values.
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!taxonomy!taxonomy.admin.inc/function/taxonomy_form_term_submit_build_taxonomy_term/7.x