You are here

function context_blocks in Context 6.2

Same name and namespace in other branches
  1. 6.3 context.core.inc \context_blocks()
  2. 6 context.core.inc \context_blocks()

This override of theme_blocks() is called because of an alter of the theme registry. See context_theme_registry_alter().

1 string reference to 'context_blocks'
context_theme_registry_alter in ./context.core.inc
Implementation of hook_theme_registry_alter().

File

./context.core.inc, line 447

Code

function context_blocks($region) {

  // Bail if this region is disabled.
  $disabled_regions = context_active_values('theme_regiontoggle');
  if (!empty($disabled_regions) && in_array($region, $disabled_regions)) {
    return '';
  }
  $output = "";
  if ($list = context_block_list($region)) {
    foreach ($list as $key => $block) {
      $output .= theme("block", $block);
    }
  }
  return $output . drupal_get_content($region);
}