You are here

function facetapi_facetapi_empty_behaviors in Facet API 6.3

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

Implements hook_facetapi_empty_behaviors().

File

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

Code

function facetapi_facetapi_empty_behaviors() {
  $path = drupal_get_path('module', 'facetapi') . '/plugins/facetapi';
  return array(
    'empty_behavior' => array(
      'handler' => array(
        'label' => t('Abstract class for empty behaviors'),
        'class' => 'FacetapiEmptyBehavior',
        'abstract' => TRUE,
        'path' => $path,
        'file' => 'empty_behavior.inc',
      ),
    ),
    'none' => array(
      'handler' => array(
        'label' => t('Do not display facet'),
        'class' => 'FacetapiEmptyBehaviorNone',
        'parent' => 'empty_behavior',
        'path' => $path,
        'file' => 'empty_behavior.inc',
      ),
    ),
    'text' => array(
      'handler' => array(
        'label' => t('Display text'),
        'class' => 'FacetapiEmptyBehaviorText',
        'parent' => 'empty_behavior',
        'path' => $path,
        'file' => 'empty_behavior_text.inc',
      ),
    ),
  );
}