function hook_apachesolr_process_results in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr.api.php \hook_apachesolr_process_results()
- 7 apachesolr.api.php \hook_apachesolr_process_results()
This is invoked by apachesolr_search.module for the whole resultset returned in a search.
Parameters
array $results: The returned search results.
1 invocation of hook_apachesolr_process_results()
- apachesolr_search_process_response in ./
apachesolr_search.module - @todo Make sure the paging works for Drupal 6
File
- ./
apachesolr.api.php, line 319 - Exposed Hooks in 6.x-3.x:
Code
function hook_apachesolr_process_results(&$results, DrupalSolrQueryInterface $query) {
foreach ($results as $id => $result) {
$results[$id]['title'] = t('[Result] !title', array(
'!title' => $result['title'],
));
}
}