You are here

function panels_flexible_panels in Panels 6.3

Same name and namespace in other branches
  1. 5.2 layouts/flexible.inc \panels_flexible_panels()
  2. 6.2 layouts/flexible/flexible.inc \panels_flexible_panels()
  3. 7.3 plugins/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

File

plugins/layouts/flexible/flexible.inc, line 254

Code

function panels_flexible_panels($display, $settings, $layout) {
  $items = array();
  panels_flexible_convert_settings($settings, $layout);
  foreach ($settings['items'] as $id => $item) {
    if ($item['type'] == 'region') {
      $items[$id] = $item['title'];
    }
  }
  return $items;
}