You are here

function theme_panels_list_style_render_region in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/styles/list.inc \theme_panels_list_style_render_region()

Render callback.

File

plugins/styles/list.inc, line 23
Definition of the 'list' panel style.

Code

function theme_panels_list_style_render_region($vars) {
  $display = $vars['display'];
  $region_id = $vars['region_id'];
  $panes = $vars['panes'];
  $settings = $vars['settings'];
  $items = array();
  foreach ($panes as $pane_id => $item) {
    $items[] = $item;
  }
  if (empty($settings['list_type'])) {
    $settings['list_type'] = 'ul';
  }
  return theme('item_list', array(
    'items' => $items,
    'type' => $settings['list_type'],
  ));
}