You are here

function finder_block_info in Finder 7

Same name and namespace in other branches
  1. 7.2 finder.module \finder_block_info()

Implements hook_block_info().

See also

hook_block_info()

File

./finder.module, line 782
The finder module.

Code

function finder_block_info() {
  $finders = finder_load_multiple(NULL, array(
    'block' => 1,
  ));
  $blocks = array();
  foreach ($finders as $finder) {
    $blocks['finder_' . $finder->finder_id] = array(
      'info' => t('Finder') . ': ' . check_plain($finder->title),
      'cache' => 'BLOCK_NO_CACHE',
    );
  }
  return $blocks;
}