function theme_apachesolr_breadcrumb_hash in Apache Solr Multisite Search 6
Same name and namespace in other branches
- 6.2 apachesolr_multisitesearch.module \theme_apachesolr_breadcrumb_hash()
1 string reference to 'theme_apachesolr_breadcrumb_hash'
- apachesolr_multisitesearch_block in ./
apachesolr_multisitesearch.module - Implementation of hook_block().
1 theme call to theme_apachesolr_breadcrumb_hash()
File
- ./
apachesolr_multisitesearch.module, line 414 - Provides a multi-site search implementation for use with the Apache Solr module
Code
function theme_apachesolr_breadcrumb_hash($hash, $exclude = FALSE) {
static $meta;
if (!isset($meta)) {
$meta = variable_get('apachesolr_multisitesearch_metadata', array());
}
if ($hash == apachesolr_site_hash()) {
return t('This site (!site)', array(
'!site' => variable_get('site_name', 'Drupal'),
));
}
elseif (isset($meta[$hash]['ss_multisite_meta_sitename'])) {
return $meta[$hash]['ss_multisite_meta_sitename'];
}
return $hash;
}