You are here

function facetapi_test_facetapi_facet_info in Facet API 6.3

Same name and namespace in other branches
  1. 7.2 tests/facetapi_test.module \facetapi_test_facetapi_facet_info()
  2. 7 tests/facetapi_test.module \facetapi_test_facetapi_facet_info()

Implements hook_facetapi_facet_info().

File

tests/facetapi_test/facetapi_test.module, line 107
Provides a test adapter and plugins.

Code

function facetapi_test_facetapi_facet_info($searcher_info) {
  $facets = array();
  if ('test' == $searcher_info['type']) {
    $facets['enabled'] = array(
      'label' => t('Enabled facet'),
      'description' => t('Facet that tests enabling.'),
      'dependency plugins' => array(
        'role',
      ),
    );
    $facets['disabled'] = array(
      'label' => t('Disabled facet'),
      'description' => t('Facet that tests disabling.'),
      'dependency plugins' => array(
        'role',
      ),
    );
    $facets['colon:test'] = array(
      'label' => t('Colon test'),
      'description' => t('Test facets names with colonss.'),
      'dependency plugins' => array(
        'role',
      ),
    );
  }
  return $facets;
}