You are here

function ddblock_block_info in Dynamic display block 7

Implements hook_block_info().

File

./ddblock.module, line 163
Enables your site to display dynamic content in a block.

Code

function ddblock_block_info() {
  $blocks = ddblock_get_blocks(NULL);
  $list = array();
  foreach ($blocks as $block) {
    $list[$block->delta] = array(
      'info' => check_plain($block->title),
      'cache' => DRUPAL_NO_CACHE,
    );

    // Don't cache blocks.
  }
  return $list;
}