You are here

function panels_get_regions in Panels 6.3

Same name and namespace in other branches
  1. 7.3 includes/plugins.inc \panels_get_regions()

Get a list of panels available in the layout.

10 calls to panels_get_regions()
panels_change_layout in includes/display-layout.inc
Form definition for the display layout converter.
panels_get_panels in ./panels.module
Get a list of panel regions available in the layout.
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_node_override_basic_submit in plugins/page_wizards/node_override.inc
Submit function to store the form data in our cache.

... See full list

File

includes/plugins.inc, line 25
Contains helper code for plugins and contexts.

Code

function panels_get_regions($layout, $display) {
  if (!empty($layout['panels function']) && function_exists($layout['panels function'])) {
    return $layout['panels function']($display, $display->layout_settings, $layout);
  }
  if (!empty($layout['panels'])) {
    return $layout['panels'];
  }
  return array();
}