function imageblock_block_info in Image Block 7
Implements hook_block_info().
File
- ./
imageblock.module, line 69 - imageblock.module Primarily Drupal hooks.
Code
function imageblock_block_info() {
$blocks = array();
$result = db_query('SELECT bid, info FROM {imageblock} ORDER BY info');
foreach ($result as $block) {
$blocks[$block->bid]['info'] = $block->info;
// Not worth caching.
$blocks[$block->bid]['cache'] = DRUPAL_NO_CACHE;
}
return $blocks;
}