function apachesolr_image_apachesolr_process_results in Apache Solr Search 6
Same name and namespace in other branches
- 5.2 contrib/apachesolr_image/apachesolr_image.module \apachesolr_image_apachesolr_process_results()
- 6.2 contrib/apachesolr_image/apachesolr_image.module \apachesolr_image_apachesolr_process_results()
Implementation of hook_apachesolr_process_results().
File
- contrib/
apachesolr_image/ apachesolr_image.module, line 39
Code
function apachesolr_image_apachesolr_process_results(&$results) {
foreach ($results as $index => $item) {
if ($item['node']->type == 'image' && !empty($item['node']->ss_image_relative)) {
$results[$index]['snippet'] = theme('apachesolr_image_snippet', $item);
}
}
}