function panels_export_pane in Panels 6.2
Same name and namespace in other branches
- 5.2 panels.module \panels_export_pane()
Related topics
1 call to panels_export_pane()
- panels_export_display in ./
panels.module - Exports the provided display into portable code.
File
- ./
panels.module, line 829 - panels.module
Code
function panels_export_pane($pane, $prefix = '') {
$output = '';
$output = $prefix . '$pane = new stdClass()' . ";\n";
$fields = array(
'pid',
'panel',
'type',
'shown',
'subtype',
'access',
'configuration',
'cache',
);
foreach ($fields as $field) {
$output .= "{$prefix} " . '$pane->' . $field . ' = ' . panels_var_export($pane->{$field}, "{$prefix} ") . ";\n";
}
return $output;
}