function panels_bootstrap_panels in Panels Bootstrap Layout Builder 7
Same name and namespace in other branches
- 7.3 plugins/layouts/bootstrap/bootstrap.inc \panels_bootstrap_panels()
Define the actual list of columns and rows for this bootstrap panel.
1 string reference to 'panels_bootstrap_panels'
- bootstrap.inc in plugins/
layouts/ bootstrap/ bootstrap.inc
File
- plugins/
layouts/ bootstrap/ bootstrap.inc, line 254
Code
function panels_bootstrap_panels($display, $settings, $layout) {
$items = array();
panels_bootstrap_convert_settings($settings, $layout);
foreach ($settings['items'] as $id => $item) {
// Remove garbage values.
if (!isset($item['type'])) {
unset($items[$id]);
}
else {
if ($item['type'] == 'region') {
$items[$id] = $item['title'];
}
}
}
return $items;
}