function weight_apachesolr_query_prepare in Weight 7.2
Implements hook_apachesolr_query_prepare().
File
- ./
weight.module, line 601
Code
function weight_apachesolr_query_prepare($query) {
// Add a sort on the weight.
$query
->setAvailableSort('is_weight', array(
'title' => t('Weight'),
'default' => 'asc',
));
}