You are here

function facetapi_facetapi_filters in Facet API 6.3

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

Implements hook_facetapi_filters().

File

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

Code

function facetapi_facetapi_filters() {
  $path = drupal_get_path('module', 'facetapi') . '/plugins/facetapi';
  return array(
    'filter' => array(
      'handler' => array(
        'label' => t('Abstract classs for filters'),
        'class' => 'FacetapiFilter',
        'abstract' => TRUE,
        'path' => $path,
        'file' => 'filter.inc',
      ),
    ),
    'active_items' => array(
      'handler' => array(
        'label' => t('Do not display active items'),
        'class' => 'FacetapiFilterActiveItems',
        'parent' => 'filter',
        'path' => $path,
        'file' => 'filter.inc',
      ),
    ),
    'current_depth' => array(
      'handler' => array(
        'label' => t('Only show items in the current level of the hierarchy'),
        'class' => 'FacetapiFilterCurrentDepth',
        'parent' => 'filter',
        'path' => $path,
        'file' => 'filter.inc',
        //not really needed since parent file will be included
        'requirements' => array(
          'facetapi_requirement_facet_hierarchical' => TRUE,
        ),
      ),
    ),
  );
}