You are here

function hook_facetapi_query_QUERY_TYPE_prepare in Facet API 6

Allows the adatper to set up the facet queries.

Parameters

$adapter: A FacetapiAdapter object containing the adapter.

$facet: An array containing the full realm definition.

&$data: A mixed value containing any data that needs to be altered. For example, this may be the "params" array for Apache Solr or the query object for Search Lucene API.

...: Any additional parameters passed by the adapter.

2 functions implement hook_facetapi_query_QUERY_TYPE_prepare()

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_query_date_prepare in contrib/facetapi_apachesolr/facetapi_apachesolr.module
Implementation of hook_facetapi_query_QUERY_TYPE_prepare().
facetapi_apachesolr_facetapi_query_term_prepare in contrib/facetapi_apachesolr/facetapi_apachesolr.module
Implementation of hook_facetapi_query_QUERY_TYPE_prepare().

File

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

Code

function hook_facetapi_query_QUERY_TYPE_prepare(FacetapiAdapter $adapter, array $facet, &$data) {
}