You are here

protected function context_reaction_block::is_enabled_region in Context 7.3

Same name and namespace in other branches
  1. 6.3 plugins/context_reaction_block.inc \context_reaction_block::is_enabled_region()
  2. 6 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.

3 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.
context_reaction_block::is_editable_region in plugins/context_reaction_block.inc
Determine whether inline editing requirements are met and that the current user may edit.
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 262

Class

context_reaction_block
Expose blocks as context reactions.

Code

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