function apachesolr_search_block_info in Apache Solr Search 6.3
Same name and namespace in other branches
- 8 apachesolr_search.module \apachesolr_search_block_info()
- 7 apachesolr_search.module \apachesolr_search_block_info()
Retrieve all possible MLT blocks
1 call to apachesolr_search_block_info()
- apachesolr_search_block in ./
apachesolr_search.module - Implements hook_block().
File
- ./
apachesolr_search.module, line 459 - Provides a content search implementation for node content for use with the Apache Solr search application.
Code
function apachesolr_search_block_info() {
// Get all of the moreLikeThis blocks that the user has created
$blocks = apachesolr_search_load_all_mlt_blocks();
foreach ($blocks as $delta => $settings) {
$blocks[$delta] += array(
'info' => t('Apache Solr recommendations: !name', array(
'!name' => $settings['name'],
)),
'cache' => BLOCK_CACHE_PER_PAGE,
);
}
// Add the sort block.
$blocks['sort'] = array(
'info' => t('Apache Solr Core: Sorting'),
'cache' => BLOCK_NO_CACHE,
);
return $blocks;
}