function _taxonomy_title_insert in Taxonomy Title 6
Inserts the term title.
Parameters
$tid: The taxonomy term id of the term.
$title: The taxonomy term title to use for this term.
1 call to _taxonomy_title_insert()
- taxonomy_title_taxonomy in ./
taxonomy_title.module - Implementation of hook_taxonomy().
File
- ./
taxonomy_title.module, line 149 - Enhanced control over the heading tag for the taxonomy term list pages.
Code
function _taxonomy_title_insert($tid, $title) {
if (!empty($title)) {
db_query("INSERT INTO {taxonomy_title} (tid, title) VALUES (%d, '%s')", $tid, $title);
if (function_exists('i18nstrings_update')) {
i18nstrings_update("taxonomy_title:term:{$tid}:title", $title);
}
}
}