function panels_get_panels in Panels 5.2
Same name and namespace in other branches
- 6.3 panels.module \panels_get_panels()
- 6.2 includes/plugins.inc \panels_get_panels()
Get a list of panels available in the layout.
7 calls to panels_get_panels()
- panels_ajax_add_content in includes/
display_edit.inc - Entry point for AJAX: 'Add Content' modal form, from which the user selects the type of pane to add.
- panels_change_layout in includes/
display_edit.inc - Form definition for the display layout converter.
- panels_common_get_layout_information in includes/
common.inc - The layout information fieldset displayed at admin/edit/panel-%implementation%/add/%layout%.
- panels_edit_display in includes/
display_edit.inc - Form definition for the panels display editor
- panels_panel_settings in includes/
display_edit.inc - Form to edit panel style settings.
File
- includes/
plugins.inc, line 426 - plugins.inc
Code
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();
}