function apachesolr_multisitesearch_map_username in Apache Solr Multisite Search 7
Same name and namespace in other branches
- 6.3 apachesolr_multisitesearch.module \apachesolr_multisitesearch_map_username()
1 string reference to 'apachesolr_multisitesearch_map_username'
File
- ./
apachesolr_multisitesearch.module, line 62 - Provides a multi-site search implementation for use with the Apache Solr module
Code
function apachesolr_multisitesearch_map_username($facets, $options) {
$map = array();
foreach ($facets as $key) {
// @see https://drupal.org/node/2050747
if ($key == '0' || $key == '_empty_') {
$map[$key]['#markup'] = variable_get('anonymous', t('Anonymous'));
}
else {
$map[$key]['#markup'] = $key;
}
}
return $map;
}