You are here

function panels_get_panels in Panels 5.2

Same name and namespace in other branches
  1. 6.3 panels.module \panels_get_panels()
  2. 6.2 includes/ \panels_get_panels()

Get a list of panels available in the layout.

7 calls to panels_get_panels()
panels_ajax_add_content in includes/
Entry point for AJAX: 'Add Content' modal form, from which the user selects the type of pane to add.
panels_change_layout in includes/
Form definition for the display layout converter.
panels_common_get_layout_information in includes/
The layout information fieldset displayed at admin/edit/panel-%implementation%/add/%layout%.
panels_edit_display in includes/
Form definition for the panels display editor
panels_panel_settings in includes/
Form to edit panel style settings.

... See full list


includes/, line 426


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