You are here

function hook_facetapi_adapters in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 facetapi.api.php \hook_facetapi_adapters()
  2. 7 facetapi.api.php \hook_facetapi_adapters()

Define all adapter plugins provided by the module.

Adapters are the abstraction layer through which searchers integrate with Facet API and various backend functionality.

Return value

array An associative array keyed by unique name of the adapter. Each adapter is an associative array keyed by "handler" containing:

  • class: The name of the plugin class.

See also

FacetapiApachesolr

2 functions implement hook_facetapi_adapters()

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

facetapi_facetapi_adapters in ./facetapi.facetapi.inc
Implements hook_facetapi_widgets().
facetapi_test_facetapi_adapters in tests/facetapi_test/facetapi_test.module
Implements hook_facetapi_widgets().

File

./facetapi.api.php, line 291
Hooks provided by the Facet API module.

Code

function hook_facetapi_adapters() {
  return array(
    'apachesolr' => array(
      'handler' => array(
        'class' => 'FacetapiApachesolrFacetapiAdapter',
      ),
    ),
  );
}