You are here

function layout_responsive_panels in Layout 7

Return the actual list of regions for this responsive panel.

1 string reference to 'layout_responsive_panels'
responsive.inc in plugins/layouts/responsive.inc

File

plugins/layouts/responsive.inc, line 140

Code

function layout_responsive_panels($display, $settings, $layout) {
  $items = array();
  layout_responsive_merge_default_settings($settings, $layout);

  // Resolve machine names to names for visual presentation in panels.
  $default_regions = layout_region_load_all();
  $region_names = array();
  foreach ($settings['regions'] as $name => $overrides) {
    $region_names[$name] = $default_regions[$name]->admin_title;
  }
  return $region_names;
}