You are here

function facetapi_facetapi_filters in Facet API 7

Same name and namespace in other branches
  1. 6.3 facetapi.facetapi.inc \facetapi_facetapi_filters()
  2. 7.2 facetapi.facetapi.inc \facetapi_facetapi_filters()

Implements hook_facetapi_filters().

File

./facetapi.facetapi.inc, line 162
Facet API hook implementations.

Code

function facetapi_facetapi_filters() {
  return array(
    'active_items' => array(
      'handler' => array(
        'label' => t('Do not display active items'),
        'class' => 'FacetapiFilterActiveItems',
      ),
    ),
    'current_depth' => array(
      'handler' => array(
        'label' => t('Only show items in the current level of the hierarchy'),
        'class' => 'FacetapiFilterCurrentDepth',
        'requirements' => array(
          'facetapi_requirement_facet_hierarchical' => TRUE,
        ),
      ),
    ),
  );
}