You are here

protected function context_reaction_block::is_enabled_region in Context 6.3

Same name and namespace in other branches
  1. 6 plugins/context_reaction_block.inc \context_reaction_block::is_enabled_region()
  2. 7.3 plugins/context_reaction_block.inc \context_reaction_block::is_enabled_region()

Return a list of enabled regions for which blocks should be built. Split out into a separate method for easy overrides in extending classes.

2 calls to context_reaction_block::is_enabled_region()
context_layouts_reaction_block::is_enabled_region in context_layouts/plugins/context_layouts_reaction_block.inc
Override of is_enabled_region(). Check that there is an active layout and it supports the given region.
context_reaction_block::execute in plugins/context_reaction_block.inc
Execute.
1 method overrides context_reaction_block::is_enabled_region()
context_layouts_reaction_block::is_enabled_region in context_layouts/plugins/context_layouts_reaction_block.inc
Override of is_enabled_region(). Check that there is an active layout and it supports the given region.

File

plugins/context_reaction_block.inc, line 254

Class

context_reaction_block
Expose blocks as context reactions.

Code

protected function is_enabled_region($region) {
  global $theme;
  $regions = array_keys(system_region_list($theme));
  return in_array($region, $regions, TRUE);
}