function current_search_block_list_alter in Facet API 6.3
Implements hook_block_list_alter().
Enforces visibility settings.
File
- contrib/
current_search/ current_search.block.inc, line 95 - Block hook implementations and block form alterations.
Code
function current_search_block_list_alter(&$blocks) {
foreach ($blocks as $bid => $block) {
if ('current_search' == $block->module) {
if (!current_search_check_visibility($block->delta)) {
unset($blocks[$bid]);
}
}
}
}