You are here

function panels_display::clone_pane in Panels 6.2

Same name and namespace in other branches
  1. 8.3 panels.module \panels_display::clone_pane()
  2. 5.2 panels.module \panels_display::clone_pane()
  3. 6.3 panels.module \panels_display::clone_pane()
  4. 7.3 panels.module \panels_display::clone_pane()
1 call to panels_display::clone_pane()
panels_display::duplicate_pane in ./panels.module

File

./panels.module, line 496
panels.module

Class

panels_display
Forms the basis of a panel display

Code

function clone_pane($pid) {
  $pane = drupal_clone($this->content[$pid]);
  foreach (array_keys($this->content) as $pidcheck) {

    // necessary?
    unset($pane->position);
  }
  return $pane;
}