function panels_display::clone_pane in Panels 5.2
Same name and namespace in other branches
- 8.3 panels.module \panels_display::clone_pane()
- 6.3 panels.module \panels_display::clone_pane()
- 6.2 panels.module \panels_display::clone_pane()
- 7.3 panels.module \panels_display::clone_pane()
1 call to panels_display::clone_pane()
File
- ./
panels.module, line 586 - panels.module Core API for Panels. Provides display editing and rendering capabilities.
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;
}