You are here

function facetapi_luceneapi_facetapi_adapter_info in Facet API 6

Implementation of hook_facetapi_adapter_info().

File

contrib/facetapi_luceneapi/facetapi_luceneapi.module, line 121
The Search Lucene API module's implementation of the the Facet API.

Code

function facetapi_luceneapi_facetapi_adapter_info() {
  $adapters = array();

  // Iterates over searchable Search Lucene API modules, builds adapter information.
  foreach (luceneapi_searchable_module_list() as $searcher => $name) {
    $adapters[$searcher] = array(
      'class' => 'FacetapiLuceneapiAdapter',
      'type' => luceneapi_index_type_get($searcher),
      'file' => 'facetapi_luceneapi.adapter.inc',
    );
  }
  return $adapters;
}