function theme_apachesolr_breadcrumb_cck in Apache Solr Search 5.2
Same name and namespace in other branches
- 6.2 apachesolr_search.module \theme_apachesolr_breadcrumb_cck()
File
- ./
apachesolr_search.module, line 1021 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function theme_apachesolr_breadcrumb_cck($field) {
$matches = preg_split('/_cck_/', $field['#name']);
if (isset($matches[1])) {
$mappings = apachesolr_cck_fields();
if (isset($mappings[$matches[1]]['display_callback'])) {
$function = $mappings[$matches[1]]['display_callback'];
if (function_exists($function)) {
$facet = $field['#value'];
$options = array(
'delta' => $matches[1],
);
return $function($facet, $options);
}
}
}
return $field['#value'];
}