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