You are here

function search_api_ranges_facetapi_widgets in Search API ranges 7

Implements hook_facetapi_widgets().

File

./search_api_ranges.module, line 31
Performs min/max queries through Search API and provides UI Slider display widget for Facet API

Code

function search_api_ranges_facetapi_widgets() {
  return array(
    'search_api_ranges_ui_slider' => array(
      'handler' => array(
        'label' => t('Ranges: Min/Max UI Slider'),
        'class' => 'SearchApiRangesWidgetUISlider',
        'query types' => array(
          'term',
        ),
      ),
    ),
    'search_api_ranges_ui_links' => array(
      'handler' => array(
        'label' => t('Ranges: Text links'),
        'class' => 'SearchApiRangesWidgetLinks',
        'query types' => array(
          'term',
        ),
      ),
    ),
    'search_api_ranges_ui_checkbox_links' => array(
      'handler' => array(
        'label' => t('Ranges: Text links with checkboxes'),
        'class' => 'SearchApiRangesWidgetCheckboxLinks',
        'query types' => array(
          'term',
        ),
      ),
    ),
    'search_api_ranges_ui_select' => array(
      'handler' => array(
        'label' => t('Ranges: Drop down list'),
        'class' => 'SearchApiRangesWidgetSelect',
        'query types' => array(
          'term',
        ),
      ),
    ),
  );
}