function facetapi_facetapi_sort_info in Facet API 7.2
Same name and namespace in other branches
- 6.3 facetapi.facetapi.inc \facetapi_facetapi_sort_info()
- 6 facetapi.module \facetapi_facetapi_sort_info()
- 7 facetapi.facetapi.inc \facetapi_facetapi_sort_info()
Implements hook_facetapi_sort_info().
File
- ./
facetapi.facetapi.inc, line 103 - Facet API hook implementations.
Code
function facetapi_facetapi_sort_info() {
$sorts = array();
$sorts['active'] = array(
'label' => t('Facet active'),
'callback' => 'facetapi_sort_active',
'description' => t('Sort by whether the facet is active or not.'),
'weight' => -50,
);
$sorts['count'] = array(
'label' => t('Count'),
'callback' => 'facetapi_sort_count',
'description' => t('Sort by the facet count.'),
'weight' => -49,
);
$sorts['display'] = array(
'label' => t('Display value'),
'callback' => 'facetapi_sort_display',
'description' => t('Sort by the value displayed to the user.'),
'weight' => -48,
);
$sorts['indexed'] = array(
'label' => t('Indexed value'),
'callback' => 'facetapi_sort_indexed',
'description' => t('Sort by the raw value stored in the index.'),
'weight' => -47,
);
return $sorts;
}