You are here

function _termcase_update_term_name in Termcase 6

Same name and namespace in other branches
  1. 7 termcase.module \_termcase_update_term_name()

Update the term name in the database

2 calls to _termcase_update_term_name()
termcase_taxonomy in ./termcase.module
Implementation of hook_taxonomy().
_termcase_update_all_terms in ./termcase.module
Helper function to loop through all terms in the specified vocabulary and apply the case formatting to each of them

File

./termcase.module, line 270
The Termcase module gives you the option to specify specific case-formatting on terms.

Code

function _termcase_update_term_name($tid, $name) {
  db_query("UPDATE {term_data} SET name = '%s' WHERE tid = %d", $name, $tid);
}