You are here

function facetapi_facetapi_sort_info in Facet API 6

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

Implementation of hook_facetapi_sort_info().

File

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

Code

function facetapi_facetapi_sort_info() {
  $sorts = array();
  $sorts['active'] = array(
    'title' => t('Facet active'),
    'callback' => 'facetapi_sort_active',
    'description' => t('Sort by whether the facet is active or not.'),
    'weight' => -50,
  );
  $sorts['count'] = array(
    'title' => t('Count'),
    'callback' => 'facetapi_sort_count',
    'description' => t('Sort by the facet count.'),
    'weight' => -49,
  );
  $sorts['display'] = array(
    'title' => t('Display value'),
    'callback' => 'facetapi_sort_display',
    'description' => t('Sort by the value displayed to the user.'),
    'weight' => -48,
  );
  $sorts['indexed'] = array(
    'title' => t('Indexed value'),
    'callback' => 'facetapi_sort_indexed',
    'description' => t('Sort by the raw value stored in the index.'),
    'weight' => -47,
  );
  return $sorts;
}