aggregator_block_info
- Versions
- 7
aggregator_block_info()
Implement hook_block_info().
Code
modules/aggregator/aggregator.module, line 346
<?php
function aggregator_block_info() {
$block = array();
$result = db_query('SELECT cid, title FROM {aggregator_category} ORDER BY title');
foreach ($result as $category) {
$block['category-' . $category->cid]['info'] = t('!title category latest items', array('!title' => $category->title));
}
$result = db_query('SELECT fid, title FROM {aggregator_feed} WHERE block <> 0 ORDER BY fid');
foreach ($result as $feed) {
$block['feed-' . $feed->fid]['info'] = t('!title feed latest items', array('!title' => $feed->title));
}
return $block;
}
?>Login or register to post comments 