You are here

function facetapi_facetapi_realm_info in Facet API 6.3

Same name and namespace in other branches
  1. 6 facetapi.module \facetapi_facetapi_realm_info()
  2. 7.2 facetapi.facetapi.inc \facetapi_facetapi_realm_info()
  3. 7 facetapi.facetapi.inc \facetapi_facetapi_realm_info()

Implements hook_facetapi_realm_info().

File

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

Code

function facetapi_facetapi_realm_info() {
  $realms = array();
  $realms['block'] = array(
    'label' => t('Blocks'),
    'weight' => -10,
    'sortable' => FALSE,
    'default widget' => 'facetapi_links',
    'element type' => 'links',
    'description' => t('The <em>Blocks</em> realm displays each facet in a separate <a href="@block-page">block</a>. Users are able to refine their searches in a drill-down fashion.', array(
      '@block-page' => url('admin/build/block', array(
        'query' => array(
          'destination' => $_GET['q'],
        ),
      )),
    )),
  );
  return $realms;
}