You are here

function theme_apachesolr_breadcrumb_tid in Apache Solr Search 6.2

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 apachesolr_search.module \theme_apachesolr_breadcrumb_tid()

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

File

./apachesolr_search.module, line 1498
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'];
}