function google_calendar_block_block_info in Google Calendar Block 7
Same name and namespace in other branches
- 7.2 google_calendar_block.module \google_calendar_block_block_info()
Implements hook_block_info().
File
- ./
google_calendar_block.module, line 163 - A module to provide simple Google Calendar blocks using the Google Data APIs.
Code
function google_calendar_block_block_info() {
$blocks = array();
$result = db_query('SELECT bid, info FROM {google_calendar_block} ORDER BY info');
foreach ($result as $block) {
$blocks[$block->bid]['info'] = $block->info;
}
return $blocks;
}