You are here

function theme_apachesolr_breadcrumb_date_range in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 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.

2 calls to theme_apachesolr_breadcrumb_date_range()
theme_apachesolr_breadcrumb_changed in ./apachesolr_search.module
theme_apachesolr_breadcrumb_created in ./apachesolr_search.module

File

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

Code

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