You are here

function hook_facetapi_adapter_info in Facet API 6

Defines Facet API adapters that abstract various functionality of the search backend.

Return value

An associative array containing:

  • name: The machine readable name of the adapter, usually the name of the searcher module connecting to the backend (i.e. apachesolr_search, luceneapi_node).

    • class: The name of the adapter class, which must extend the FacetapiAdapter class.
    • type: The type of content being indexed by the backend the adapter is connected to.
    • file: Optionally specify the file containing the adapter.
    • file path: The path to the folder containing the file specified in "file". This defaults to the path to the module implementing the hook.
2 functions implement hook_facetapi_adapter_info()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

facetapi_apachesolr_facetapi_adapter_info in contrib/facetapi_apachesolr/facetapi_apachesolr.module
Implementation of hook_facetapi_adapter_info().
facetapi_luceneapi_facetapi_adapter_info in contrib/facetapi_luceneapi/facetapi_luceneapi.module
Implementation of hook_facetapi_adapter_info().
1 invocation of hook_facetapi_adapter_info()
facetapi_adapter_info_get in ./facetapi.module
Invokes hook_facetapi_adapter_info(), returns all adapter definitions.

File

./facetapi.api.inc, line 27
Defines and gives example implementations of all Facet API hooks.

Code

function hook_facetapi_adapter_info() {
}