You are here

function panels_renderer_ipe::command_update_pane in Panels 7.3

Same name and namespace in other branches
  1. 6.3 panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php \panels_renderer_ipe::command_update_pane()

Create a command array to redraw a pane.

Overrides panels_renderer_editor::command_update_pane

File

panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php, line 475

Class

panels_renderer_ipe
Renderer class for all In-Place Editor (IPE) behavior.

Code

function command_update_pane($pid) {
  if (is_object($pid)) {
    $pane = $pid;
  }
  else {
    $pane = $this->display->content[$pid];
  }
  $this->commands[] = ajax_command_replace("#panels-ipe-paneid-{$pane->pid}", $this
    ->render_pane($pane));
  $this->commands[] = ajax_command_changed("#panels-ipe-display-{$this->clean_key}");
}