You are here

function search_facetapi_facetapi_facet_info_alter in Faceted Navigation for Search 7

Implements hook_facetapi_facet_info_alter().

File

./search_facetapi.module, line 55
Integrates the core Search module with the Facet API project.

Code

function search_facetapi_facetapi_facet_info_alter(array &$facet_info, array $searcher_info) {
  if ('search' == $searcher_info['adapter'] && isset($searcher_info['types']['node'])) {
    $facet_info['bundle']['field'] = 'type';
  }
}