You are here

function theme_apachesolr_breadcrumb_tid in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()
  2. 5 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()
  3. 6.2 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()

Return the term name from $tid, or $tid as a fallback.

File

./apachesolr_search.module, line 1166
Provides a content search implementation for node content for use with the Apache Solr search application.

Code

function theme_apachesolr_breadcrumb_tid($tid) {
  if (function_exists('taxonomy_get_term')) {
    if ($term = taxonomy_get_term($tid)) {
      return $term->name;
    }
  }
  return $tid;
}