protected function _taxonomy_CrumbsPlugin__term_name::_buildTermsTitle in Crumbs, the Breadcrumbs suite 6.2
Same name and namespace in other branches
- 6 plugins/crumbs.taxonomy.inc \_taxonomy_CrumbsPlugin__term_name::_buildTermsTitle()
Terms get their parent terms as breadcrumb parent. The method name matches the router path "taxonomy/term/%".
1 call to _taxonomy_CrumbsPlugin__term_name::_buildTermsTitle()
File
- plugins/
crumbs.taxonomy.inc, line 98
Class
Code
protected function _buildTermsTitle($tids) {
$db_placeholders = db_placeholders($tids);
$q = db_query($sql_r = db_rewrite_sql($sql = "\n SELECT t.tid, t.name\n FROM {term_data} t\n WHERE t.tid IN ({$db_placeholders})\n ", 't', 'tid'), $tids);
// we rebuild the $names-array so it only contains terms the user has access to.
$names = array();
while ($term = db_fetch_object($q)) {
$names[$term->tid] = $term->name;
}
return implode(', ', $names);
}