You are here

protected function _taxonomy_CrumbsPlugin__term_name::_buildTermsTitle in Crumbs, the Breadcrumbs suite 6.2

Same name and namespace in other branches
  1. 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()
_taxonomy_CrumbsPlugin__term_name::findTitle__taxonomy_term_x in plugins/crumbs.taxonomy.inc

File

plugins/crumbs.taxonomy.inc, line 98

Class

_taxonomy_CrumbsPlugin__term_name

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);
}