protected function context_layouts_reaction_block::get_layout_regions 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::get_layout_regions()
- 6 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::get_layout_regions()
Get a layout to region map for the given theme.
1 call to context_layouts_reaction_block::get_layout_regions()
- context_layouts_reaction_block::options_form in context_layouts/
plugins/ context_layouts_reaction_block.inc - Override of options form.
File
- context_layouts/
plugins/ context_layouts_reaction_block.inc, line 194
Class
Code
protected function get_layout_regions($theme_key = NULL) {
$theme_key = !isset($theme_key) ? variable_get('theme_default', 'garland') : $theme_key;
$layouts = context_layouts_get_layouts($theme_key);
if (!empty($layouts)) {
$layout_regions = array();
foreach ($layouts as $layout => $info) {
$layout_regions[$layout] = is_array($info['regions']) ? $info['regions'] : array();
}
}
return $layout_regions;
}