You are here

function hook_facetapi_dependencies in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 facetapi.api.php \hook_facetapi_dependencies()
  2. 7 facetapi.api.php \hook_facetapi_dependencies()

Define all dependency plugins provided by the module.

Dependency plugins control what criteria must be met for the backend to process the facet. It is designed to implement the "progressive disclosure" pattern where more facets are displayed to users the deeper they get into the refinement of their search.

Return value

array An associative array keyed by unique name of the dependency. Each dependency is an associative array keyed by "handler" containing:

  • label: The human readable name of the plugin displayed in the admin UI.
  • class: The name of the plugin class.

See also

FacetapiDependency

1 function implements hook_facetapi_dependencies()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

facetapi_facetapi_dependencies in ./facetapi.facetapi.inc
Implements hook_facetapi_dependencies().

File

./facetapi.api.php, line 317
Hooks provided by the Facet API module.

Code

function hook_facetapi_dependencies() {
  return array(
    'bundle' => array(
      'handler' => array(
        'label' => t('Content types'),
        'class' => 'FacetapiDependencyBundle',
      ),
    ),
  );
}