function panels_get_layout in Panels 6.3
Same name and namespace in other branches
- 5.2 includes/plugins.inc \panels_get_layout()
- 5 panels.module \panels_get_layout()
- 6.2 includes/plugins.inc \panels_get_layout()
- 7.3 includes/plugins.inc \panels_get_layout()
Fetch metadata on a specific layout plugin.
Parameters
$layout: Name of a panel layout. If the layout name contains a ':' this indicates that we need to separate the sublayout out and load it individually.
Return value
An array with information about the requested panel layout.
13 calls to panels_get_layout()
- panels_change_layout in includes/
display-layout.inc - Form definition for the display layout converter.
- panels_display::render in ./
panels.module - Render this panels display.
- panels_edit_display_settings_form in includes/
display-edit.inc - Form for display settings.
- panels_flexible_convert_settings in plugins/
layouts/ flexible/ flexible.inc - Convert settings from old style to new, or provide defaults for empty settings.
- 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.
File
- includes/
plugins.inc, line 266 - Contains helper code for plugins and contexts.
Code
function panels_get_layout($layout) {
ctools_include('plugins');
return ctools_get_plugins('panels', 'layouts', $layout);
}