function theme_apachesolr_breadcrumb_tid in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()
- 5 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()
- 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;
}