function panels_get_regions in Panels 7.3
Same name and namespace in other branches
- 6.3 includes/plugins.inc \panels_get_regions()
Get a list of panels available in the layout.
9 calls to panels_get_regions()
- panels_change_layout in includes/
display-layout.inc - Form definition for the display layout converter.
- panels_edit_configure_pane_lock_form in plugins/
display_renderers/ panels_renderer_editor.class.php - Configure lock on a pane form.
- panels_ipe_edit_control_form in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php - FAPI callback to create the Save/Cancel form for the IPE.
- panels_layouts_ui::edit_form in plugins/
export_ui/ panels_layouts_ui.class.php - Provide the actual editing form.
- panels_renderer_ipe::ajax_set_layout in panels_ipe/
plugins/ display_renderers/ panels_renderer_ipe.class.php
File
- includes/
plugins.inc, line 24 - Contains helper code for plugins and contexts.
Code
function panels_get_regions($layout, $display) {
if ($function = ctools_plugin_get_function($layout, 'regions function')) {
return $function($display, $display->layout_settings, $layout);
}
if (!empty($layout['regions'])) {
return $layout['regions'];
}
return array();
}