You are here

function facetapi_facetapi_facets_alter in Facet API 6

Implementation of hook_facetapi_facets_alter().

Changes title of grouped taxonomy form.

File

./facetapi.module, line 1670
An abstracted facet API that can be used by various search backens.

Code

function facetapi_facetapi_facets_alter(&$build, $adapter, $realm) {
  if ('fieldset' == $realm['name'] && 'node' == $adapter
    ->getType() && isset($build['tid'])) {
    $build['tid']['#title'] = t('Only in the category(s)');
    $build['tid']['#description'] = '';
  }
}