You are here

date_facets.facetapi.inc in Date Facets 8

Same filename and directory in other branches
  1. 7 date_facets.facetapi.inc

Facet API hook implementations.

File

date_facets.facetapi.inc
View 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

Namesort descending Description
date_facets_facetapi_query_types Implements hook_facetapi_query_types().
date_facets_facetapi_widgets Implements hook_facetapi_widgets().