You are here

function hook_facetapi_query_types in Facet API 6.3

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

Define all query type plugins provided by the module.

Query type plugins are responsible for converting the active facet items into facet queries that are processed by the backend. They are also responsible for extracting extra information about the active item, such as the start and end values of a range query.

Return value

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

  • class: The name of the plugin class.
  • adapter: The adapter that the query type plugin is associated with.

See also

FacetapiQueryTypeInterface

FacetapiQueryType

2 functions implement hook_facetapi_query_types()

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

facetapi_facetapi_query_types in ./facetapi.facetapi.inc
facetapi_test_facetapi_query_types in tests/facetapi_test/facetapi_test.module
Implements hook_facetapi_query_types().

File

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

Code

function hook_facetapi_query_types() {
  return array(
    'apachesolr_term' => array(
      'handler' => array(
        'class' => 'FacetapiApachesolrTerm',
        'adapter' => 'apachesolr',
      ),
    ),
  );
}