You are here

function bat_facets_facetapi_facet_info_alter in Booking and Availability Management Tools for Drupal 7

Implements hook_facetapi_facet_info_alter().

File

modules/bat_facets/bat_facets.module, line 24

Code

function bat_facets_facetapi_facet_info_alter(array &$facet_info, array $searcher_info) {
  switch ($searcher_info['adapter']) {
    case 'search_api':
      foreach ($facet_info as $name => $info) {
        if ($name == 'type_id') {
          $facet_info[$name]['query types'][] = 'bat_state';
        }
      }
      break;
  }
}