function _panels_render_preview_pane_disabled in Panels 6.2
Same name and namespace in other branches
- 5.2 includes/display_edit.inc \_panels_render_preview_pane_disabled()
Provide filler content for dynamic pane previews in the editor, as they're just a bad idea to have anyway, and can also cause infinite recursion loops that render the editor inaccessible in some cases.
1 call to _panels_render_preview_pane_disabled()
- panels_show_pane in includes/
display-edit.inc
File
- includes/
display-edit.inc, line 311
Code
function _panels_render_preview_pane_disabled($pane, $context) {
$block = new stdClass();
$block->title = panels_get_pane_title($pane, $context);
$block->content = '<em>' . t("Dynamic content previews have been disabled to improve performance and stability for this editing screen.") . '</em>';
return $block;
}