function theme_apachesolr_breadcrumb_is_book_bid in Apache Solr Search 6.2
Same name and namespace in other branches
- 5.2 apachesolr_search.module \theme_apachesolr_breadcrumb_is_book_bid()
- 6 apachesolr_search.module \theme_apachesolr_breadcrumb_is_book_bid()
Return the title of a book.
File
- ./
apachesolr_search.module, line 1518 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function theme_apachesolr_breadcrumb_is_book_bid($field) {
if (is_numeric($field['#value'])) {
return db_result(db_query('SELECT title FROM {node} WHERE nid = %d', $field['#value']));
}
else {
return t('Not in any book');
}
}