function panels_renderer_editor::ajax_hide in Panels 6.3
Same name and namespace in other branches
- 7.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 490 - 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);
}