function theme_apachesolr_multisitesearch_breadcrumb_hash in Apache Solr Multisite Search 7
Same name and namespace in other branches
- 6.3 apachesolr_multisitesearch.module \theme_apachesolr_multisitesearch_breadcrumb_hash()
1 theme call to theme_apachesolr_multisitesearch_breadcrumb_hash()
File
- ./
apachesolr_multisitesearch.module, line 321 - Provides a multi-site search implementation for use with the Apache Solr module
Code
function theme_apachesolr_multisitesearch_breadcrumb_hash($variables) {
$hash = $variables['hash'];
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;
}