protected function context_layouts_reaction_block::is_enabled_region in Context 7.3
Same name and namespace in other branches
- 6.3 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::is_enabled_region()
- 6 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::is_enabled_region()
Override of is_enabled_region(). Check that there is an active layout and it supports the given region.
Overrides context_reaction_block::is_enabled_region
File
- context_layouts/
plugins/ context_layouts_reaction_block.inc, line 8
Class
Code
protected function is_enabled_region($region) {
$layout = $this
->get_active_layout();
if ($layout && isset($layout['regions']) && is_array($layout['regions'])) {
return in_array($region, $layout['regions'], TRUE) && parent::is_enabled_region($region);
}
return parent::is_enabled_region($region);
}