You are here

function panels_renderer_ipe::command_add_pane in Panels 6.3

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

Create a command array to add a new pane.

Overrides panels_renderer_editor::command_add_pane

File

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

Class

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

Code

function command_add_pane($pid) {
  if (is_object($pid)) {
    $pane = $pid;
  }
  else {
    $pane = $this->display->content[$pid];
  }
  $this->commands[] = ctools_ajax_command_append("#panels-ipe-regionid-{$pane->panel} div.panels-ipe-sort-container", $this
    ->render_pane($pane));
  $this->commands[] = ctools_ajax_command_changed("#panels-ipe-display-{$this->clean_key}");
}