You are here

function hook_facetapi_empty_behaviors in Facet API 7

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

Define all empty behavior plugins provided by the module.

See the FacetapiEmptyBehavior docblock for more information on what empty behavior plugins do and what their responsibilities are.

Return value

array An associative array keyed by unique name of the empty behavior. Each empty behavior 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

FacetapiEmptyBehavior

1 function implements hook_facetapi_empty_behaviors()

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

facetapi_facetapi_empty_behaviors in ./facetapi.facetapi.inc
Implements hook_facetapi_empty_behaviors().

File

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

Code

function hook_facetapi_empty_behaviors() {
  return array(
    'none' => array(
      'handler' => array(
        'label' => t('Do not display facet'),
        'class' => 'FacetapiEmptyBehaviorNone',
      ),
    ),
  );
}