function apachesolr_map_book in Apache Solr Search 7
Same name and namespace in other branches
- 8 apachesolr.module \apachesolr_map_book()
- 6.3 apachesolr.module \apachesolr_map_book()
FacetAPI mapping callback.
1 string reference to 'apachesolr_map_book'
- apachesolr_common_node_facets in ./
apachesolr.module - Helper function returning common facet definitions.
File
- ./
apachesolr.module, line 502 - Integration with the Apache Solr search application.
Code
function apachesolr_map_book(array $values) {
$map = array();
if (!empty($values)) {
foreach (book_get_books() as $bid => $book) {
if (in_array($bid, $values)) {
$map[$bid] = $book['title'];
}
}
}
return $map;
}