function panels_flexible_panels in Panels 7.3
Same name and namespace in other branches
- 5.2 layouts/flexible.inc \panels_flexible_panels()
- 6.3 plugins/layouts/flexible/flexible.inc \panels_flexible_panels()
- 6.2 layouts/flexible/flexible.inc \panels_flexible_panels()
Define the actual list of columns and rows for this flexible panel.
1 string reference to 'panels_flexible_panels'
- flexible.inc in plugins/
layouts/ flexible/ flexible.inc - Flexible layout plugin.
File
- plugins/
layouts/ flexible/ flexible.inc, line 265 - Flexible layout plugin.
Code
function panels_flexible_panels($display, $settings, $layout) {
$items = array();
panels_flexible_convert_settings($settings, $layout);
foreach ($settings['items'] as $id => $item) {
// Remove garbage values.
if (!isset($item['type'])) {
unset($items[$id]);
}
elseif ($item['type'] == 'region') {
$items[$id] = $item['title'];
}
}
return $items;
}