| 7 taxonomy.module | taxonomy_term_save($term) |
| 8 taxonomy.module | taxonomy_term_save(TaxonomyTerm $term) |
Saves a term object to the database.
Parameters
TaxonomyTerm $term: The taxonomy term entity to be saved.
Return value
Status constant indicating whether term was inserted (SAVED_NEW) or updated (SAVED_UPDATED). When inserting a new term, $term->tid will contain the term ID of the newly created term.
13 calls to taxonomy_term_save()
File
- core/
modules/ taxonomy/ taxonomy.module, line 545 - Enables the organization of content into categories.
Code
function taxonomy_term_save(TaxonomyTerm $term) {
return $term->save();
}
Login or register to post comments