/**
  * Create a command array to add a new pane.
  */
 function command_add_pane($pid)
 {
     if (is_object($pid)) {
         $pane = $pid;
     } else {
         $pane = $this->display->content[$pid];
     }
     ctools_include('cleanstring');
     $region_id = ctools_cleanstring($pane->panel);
     $this->commands[] = ctools_ajax_command_append("#panels-ipe-regionid-{$region_id} div.panels-ipe-sort-container", $this->render_pane($pane));
     $this->commands[] = ctools_ajax_command_changed("#panels-ipe-display-{$this->clean_key}");
 }
 /**
  * Create a command array to add a new pane.
  */
 function command_add_pane($pid)
 {
     if (is_object($pid)) {
         $pane = $pid;
     } else {
         $pane = $this->display->content[$pid];
     }
     $this->commands[] = ctools_ajax_command_append("#panel-pane-{$pane->panel}", $this->render_pane($pane));
     $this->commands[] = ctools_ajax_command_changed("#panel-pane-{$pane->pid}", "div.grabber span.text");
 }