function _termcase_update_term_name in Termcase 7
Same name and namespace in other branches
- 6 termcase.module \_termcase_update_term_name()
Helper function to update the term in the database.
3 calls to _termcase_update_term_name()
- termcase_taxonomy_term_insert in ./
termcase.module - Implements hook_taxonomy_term_insert().
- termcase_taxonomy_term_update in ./
termcase.module - Implements hook_taxonomy_term_update().
- _termcase_update_all_terms in ./
termcase.module - Apply case formatting to all terms in a vocabulary.
File
- ./
termcase.module, line 304 - The Termcase module gives you the option to specify specific case-formatting on terms.
Code
function _termcase_update_term_name($term) {
db_update('taxonomy_term_data')
->fields(array(
'name' => $term->name,
))
->condition('tid', $term->tid)
->execute();
}