You are here

function theme_apachesolr_breadcrumb_date_range in Apache Solr Search 6.2

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

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

1 string reference to 'theme_apachesolr_breadcrumb_date_range'
apachesolr_search_theme in ./apachesolr_search.module
Implementation of hook_theme().

File

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