date_facets.facetapi.inc in Date Facets 8
Same filename and directory in other branches
Facet API hook implementations.
File
date_facets.facetapi.incView source
<?php
/**
* @file
* Facet API hook implementations.
*/
/**
* Implements hook_facetapi_widgets().
*/
function date_facets_facetapi_widgets() {
return array(
'date_range' => array(
'handler' => array(
'label' => t('Date range'),
'class' => 'Drupal_Apachesolr_Facetapi_Widget_DateRangeWidget',
'query types' => array(
'date_range',
),
),
),
);
}
/**
* Implements hook_facetapi_query_types().
*/
function date_facets_facetapi_query_types() {
return array(
'apachesolr_date_range' => array(
'handler' => array(
'class' => 'Drupal_Apachesolr_Facetapi_QueryType_DateRangeQueryType',
'adapter' => 'apachesolr',
),
),
);
}
Functions
Name![]() |
Description |
---|---|
date_facets_facetapi_query_types | Implements hook_facetapi_query_types(). |
date_facets_facetapi_widgets | Implements hook_facetapi_widgets(). |