function taxonomy_title_insert in Taxonomy Title 7
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_term_insert in ./
taxonomy_title.module - Implements hook_taxonomy_term_insert().
File
- ./
taxonomy_title.module, line 177 - Enhanced control over the heading tag for the taxonomy term list pages.
Code
function taxonomy_title_insert($tid, $title) {
if (!empty($title)) {
$id = db_insert('taxonomy_title')
->fields(array(
'tid' => $tid,
'title' => $title,
))
->execute();
}
}