You are here

function facetapi_block_list_alter in Facet API 6.3

Implements hook_block_list_alter().

Parses delta information, checks whether to display block.

File

./facetapi.block.inc, line 56
Block realm code and hook implementations.

Code

function facetapi_block_list_alter(&$blocks) {
  foreach ($blocks as $bid => $block) {
    if ('facetapi' == $block->module) {
      if (!facetapi_check_block_visibility($block->delta)) {
        unset($blocks[$bid]);
      }
    }
  }
}