function quotes_block_info in Quotes 7
Implements hook_block_info().
File
- ./
quotes.module, line 973 - The quotes module allows users to maintain a list of quotes that can be displayed in any number of administrator-defined quote blocks.
Code
function quotes_block_info() {
$blocks = array();
$result = db_query('SELECT qb.bid, qb.name, qb.block_type FROM {quotes_blocks} qb');
foreach ($result as $block) {
$blocks[$block->bid] = array(
'info' => t('Quotes') . ': ' . $block->name,
'cache' => DRUPAL_NO_CACHE,
);
}
return $blocks;
}