You are here

function hook_facetapi_sort_info_alter in Facet API 6.3

Same name and namespace in other branches
  1. 6 facetapi.api.inc \hook_facetapi_sort_info_alter()
  2. 7.2 facetapi.api.php \hook_facetapi_sort_info_alter()
  3. 7 facetapi.api.php \hook_facetapi_sort_info_alter()

Allows for alterations to the sort definitions.

Parameters

array &$sort_info: The return values of hook_facetapi_sort_info() implementations.

See also

hook_facetapi_sort_info()

1 invocation of hook_facetapi_sort_info_alter()
facetapi_get_sort_info in ./facetapi.module
Returns all sort definitions.

File

./facetapi.api.php, line 274
Hooks provided by the Facet API module.

Code

function hook_facetapi_sort_info_alter(array &$sort_info) {
  $sort_info['active']['weight'] = 10;
}