function panels_bootstrap_get_sublayout in Panels Bootstrap Layout Builder 7
Same name and namespace in other branches
- 7.3 plugins/layouts/bootstrap/bootstrap.inc \panels_bootstrap_get_sublayout()
Callback to provide a single stored bootstrap layout.
1 string reference to 'panels_bootstrap_get_sublayout'
- bootstrap.inc in plugins/
layouts/ bootstrap/ bootstrap.inc
File
- plugins/
layouts/ bootstrap/ bootstrap.inc, line 58
Code
function panels_bootstrap_get_sublayout($plugin, $layout_name, $sublayout_name) {
// Do not worry about caching; Panels is handling that for us.
ctools_include('export');
$item = ctools_export_crud_load('panels_layout', $sublayout_name);
if ($item) {
return panels_bootstrap_merge_plugin($plugin, $item);
}
}