You are here

function theme_apachesolr_breadcrumb_date_range in Apache Solr Search 5.2

Same name and namespace in other branches
  1. 6 apachesolr_search.module \theme_apachesolr_breadcrumb_date_range()
  2. 6.2 apachesolr_search.module \theme_apachesolr_breadcrumb_date_range()

Proxy theme function for 'created' and 'changed' date fields.

File

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

Code

function theme_apachesolr_breadcrumb_date_range($field) {
  if (preg_match('@[\\[\\{](\\S+) TO (\\S+)[\\]\\}]@', $field['#value'], $match)) {
    return apachesolr_date_format_range($match[1], $match[2]);
  }
  return $field['#value'];
}