function omega_tools_block_info in Omega Tools 7
Implementation of hook_block_info()
File
- ./
omega_tools.module, line 200
Code
function omega_tools_block_info() {
$blocks = array();
if (variable_get('omega_tools_block_render', 'on') == 'on') {
// get a list of themes
$theme_key = variable_get('theme_default', 'garland');
$block_regions = system_region_list($theme_key);
foreach ($block_regions as $region_id => $region_desc) {
if ($region_id != "page_top" && $region_id != "page_bottom") {
$blocks['omega_' . $region_id] = array(
'info' => t('Omega - ' . ucwords($region_desc)),
'weight' => -50,
// put the block at the very top
'status' => 1,
'region' => $region_id,
);
}
}
}
return $blocks;
}