function theme_apachesolr_breadcrumb_tid in Apache Solr Search 5.2
Same name and namespace in other branches
- 5 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()
- 6 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 1066 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function theme_apachesolr_breadcrumb_tid($field) {
if (function_exists('taxonomy_get_term')) {
if ($term = taxonomy_get_term($field['#value'])) {
return $term->name;
}
}
return $field['#value'];
}