function taxonomy_tools_term_title in Taxonomy Tools 7
Same name and namespace in other branches
- 8 taxonomy_tools.module \taxonomy_tools_term_title()
Returns the title of a taxonomy term.
Parameters
string $tid: The taxonomy term title.
1 call to taxonomy_tools_term_title()
- taxonomy_tools_copier_content in taxonomy_tools_copier/
taxonomy_tools_copier.admin.inc - Builds taxonomy term hierarchical tree.
File
- ./
taxonomy_tools.module, line 588 - Drupal hooks and functions to work with taxonomy terms.
Code
function taxonomy_tools_term_title($tid) {
$title = '';
$query = db_select('taxonomy_term_data', 'foo');
$query
->addField('foo', 'name');
$query
->condition('foo.tid', $tid);
$title = $query
->execute()
->fetchField();
return $title;
}