You are here

function hook_facetapi_adapters in Facet API 7.2

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

Define all adapter plugins provided by the module.

See the FacetapiAdapter docblock for more information on what an adapter does and how it interacts with the implementing search module.

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

FacetapiAdapter

1 function implements 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_test_facetapi_adapters in tests/facetapi_test.facetapi.inc
Implements hook_facetapi_adapters().

File

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

Code

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