You are here

function panels_renderer_editor::command_add_pane in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/display_renderers/panels_renderer_editor.class.php \panels_renderer_editor::command_add_pane()

Create a command array to add a new pane.

1 call to panels_renderer_editor::command_add_pane()
panels_renderer_editor::ajax_add_pane in plugins/display_renderers/panels_renderer_editor.class.php
AJAX entry point to add a new pane.
1 method overrides panels_renderer_editor::command_add_pane()
panels_renderer_ipe::command_add_pane in panels_ipe/plugins/display_renderers/panels_renderer_ipe.class.php
Create a command array to add a new pane.

File

plugins/display_renderers/panels_renderer_editor.class.php, line 1507
Class file to control the main Panels editor.

Class

panels_renderer_editor
@file Class file to control the main Panels editor.

Code

function command_add_pane($pid) {
  if (is_object($pid)) {
    $pane = $pid;
  }
  else {
    $pane = $this->display->content[$pid];
  }
  $this->commands[] = ajax_command_append("#panel-region-{$pane->panel}", $this
    ->render_pane($pane));
  $this->commands[] = ajax_command_changed("#panel-pane-{$pane->pid}", "div.grab-title span.text");
}