You are here

function apachesolr_mlt_list_blocks in Apache Solr Search 6

Same name and namespace in other branches
  1. 5.2 apachesolr.module \apachesolr_mlt_list_blocks()
  2. 5 contrib/apachesolr_mlt/apachesolr_mlt.module \apachesolr_mlt_list_blocks()
  3. 6.2 apachesolr.module \apachesolr_mlt_list_blocks()

Returns a list of blocks. Used by hook_block

2 calls to apachesolr_mlt_list_blocks()
apachesolr_block in ./apachesolr.module
Implementation of hook_block().
apachesolr_settings in ./apachesolr.admin.inc
@file Administrative pages for the Apache Solr framework.

File

./apachesolr.module, line 1757
Integration with the Apache Solr search application.

Code

function apachesolr_mlt_list_blocks() {
  $blocks = variable_get('apachesolr_mlt_blocks', array());
  foreach ($blocks as $delta => $settings) {
    $blocks[$delta] += array(
      'info' => t('Apache Solr recommendations: !name', array(
        '!name' => $settings['name'],
      )),
      'cache' => BLOCK_CACHE_PER_PAGE,
    );
  }
  return $blocks;
}