function apachesolr_user_facetapi_facet_info_alter in Apachesolr User 7
Implements hook_facetapi_facet_info_alter().
File
- ./
apachesolr_user.module, line 243 - Indexer for the user entities for the Apachesolr module.
Code
function apachesolr_user_facetapi_facet_info_alter(&$facet_info, $searcher_info) {
// Ensure that the user entity will be correctly included in the list when
// filtering by bundle. Since facetapi_map_bundle() defaults to the 'node'
// entity when none are set, we need to explicitly include that when the list
// starts off empty.
if (!empty($facet_info['bundle']['map options']['entities'])) {
$facet_info['bundle']['map options']['entities'][] = 'user';
}
else {
$facet_info['bundle']['map options']['entities'] = array(
'node',
'user',
);
}
}