function panels_get_panels in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_get_panels()
- 6.3 panels.module \panels_get_panels()
Get a list of panels available in the layout.
Related topics
8 calls to panels_get_panels()
- panels_ajax_add_pane_choose 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-layout.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_form in includes/
display-edit.inc - Form definition for the panels display editor
- panels_edit_layout_settings_form in includes/
display-layout-settings.inc - Form definition for the display layout settings editor.
File
- includes/
plugins.inc, line 434 - 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();
}