You are here

function panels_print_layout in Panels 5

Same name and namespace in other branches
  1. 8.3 panels.module \panels_print_layout()
  2. 5.2 panels.module \panels_print_layout()
  3. 6.3 panels.module \panels_print_layout()
  4. 6.2 panels.module \panels_print_layout()
  5. 7.3 panels.module \panels_print_layout()

For external use: Given a layout ID and a $content array, return the finished layout.

File

./panels.module, line 786

Code

function panels_print_layout($id, $content) {
  $layouts = panels_get_layouts();
  $layout = $layouts[$id];
  if (!$layout) {
    return;
  }
  return panels_get_layout($layout, $content);
}