function farm_theme_block_info_alter in farmOS 7
Implements hook_block_info_alter().
File
- themes/
farm_theme/ template.php, line 415 - Farm theme template.php.
Code
function farm_theme_block_info_alter(&$blocks, $theme, $code_blocks) {
// Only affect the farmOS theme.
if ($theme != 'farm_theme') {
return;
}
// Add farm map block to the page_top region on the front page and
// farm/assets/*.
if (!empty($blocks['farm_map']['farm_map'])) {
$blocks['farm_map']['farm_map']['region'] = 'page_top';
$blocks['farm_map']['farm_map']['status'] = TRUE;
$blocks['farm_map']['farm_map']['visibility'] = BLOCK_VISIBILITY_LISTED;
$blocks['farm_map']['farm_map']['pages'] = "<front>\nfarm/assets/*";
}
}