function panels_renderer_editor::ajax_hide in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_renderer_editor::ajax_hide()
AJAX command to show a pane.
File
- plugins/
display_renderers/ panels_renderer_editor.class.php, line 569 - Class file to control the main Panels editor.
Class
- panels_renderer_editor
- @file Class file to control the main Panels editor.
Code
function ajax_hide($pid = NULL) {
if (empty($this->display->content[$pid])) {
ctools_ajax_render_error(t('Invalid pane id.'));
}
$this->display->content[$pid]->shown = FALSE;
panels_edit_cache_set($this->cache);
$this
->command_update_pane($pid);
}