You are here

function panels_mini_export in Panels 7.3

Same name and namespace in other branches
  1. 5.2 panels_mini/panels_mini.module \panels_mini_export()
  2. 6.3 panels_mini/panels_mini.module \panels_mini_export()
  3. 6.2 panels_mini/panels_mini.module \panels_mini_export()

Export a mini panel.

1 string reference to 'panels_mini_export'
panels_mini_schema_1 in panels_mini/panels_mini.install
Schema version 1 for Panels in D6.

File

panels_mini/panels_mini.module, line 434
panels_mini.module

Code

function panels_mini_export($mini, $indent = '') {
  ctools_include('export');
  $output = ctools_export_object('panels_mini', $mini, $indent);

  // Export the primary display.
  $display = !empty($mini->display) ? $mini->display : panels_load_display($mini->did);
  $output .= panels_export_display($display, $indent);
  $output .= $indent . '$mini->display = $display' . ";\n";
  return $output;
}