function panels_panel_context_export in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/task_handlers/panel_context.inc \panels_panel_context_export()
Special handling for exporting a panel task handler.
When a panel is exported, we need to export the display separately rather than just letting its object be unpacked, which does not work very well.
1 string reference to 'panels_panel_context_export'
- panel_context.inc in plugins/
task_handlers/ panel_context.inc - This is the task handler plugin to handle attaching a panel to any task that advertises itself as a 'context' type, which all of the basic page tasks provided by page_manager.module do by default.
File
- plugins/
task_handlers/ panel_context.inc, line 333 - This is the task handler plugin to handle attaching a panel to any task that advertises itself as a 'context' type, which all of the basic page tasks provided by page_manager.module do by default.
Code
function panels_panel_context_export(&$handler, $indent) {
$display = panels_panel_context_get_display($handler);
foreach (array(
'display',
'did',
'css_cache',
'temp_layout',
) as $item) {
if (isset($handler->conf[$item])) {
unset($handler->conf[$item]);
}
}
$output = panels_export_display($display, $indent);
$output .= $indent . '$handler->conf[\'display\'] = $display' . ";\n";
return $output;
}