function heartbeat_block_info in Heartbeat 7
Implements hook_block_info().
File
- ./
heartbeat.module, line 310 - Module file for heartbeat activity. Basic hook implementations and helper functions will be found here.
Code
function heartbeat_block_info() {
$blocks = array();
$streams = heartbeat_stream_config_load_all(TRUE);
// A block for each stream.
foreach ($streams as $key => $stream_config) {
if ($stream_config->has_block) {
$blocks[$stream_config->class]['info'] = drupal_ucfirst($stream_config->title);
}
}
// Heartbeat most active users.
$blocks['heartbeat_active_users']['info'] = t('Heartbeat most active users');
return $blocks;
}