function _panels_render_preview_pane_disabled in Panels 5.2
Same name and namespace in other branches
- 6.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.
2 calls to _panels_render_preview_pane_disabled()
- panels_content_config_edit_form_submit in includes/
display_edit.inc - panels_show_pane in includes/
display_edit.inc
File
- includes/
display_edit.inc, line 659
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;
}