function panels_display::add_pane in Panels 5.2
Same name and namespace in other branches
- 8.3 panels.module \panels_display::add_pane()
- 6.3 panels.module \panels_display::add_pane()
- 6.2 panels.module \panels_display::add_pane()
- 7.3 panels.module \panels_display::add_pane()
1 call to panels_display::add_pane()
File
- ./
panels.module, line 567 - panels.module Core API for Panels. Provides display editing and rendering capabilities.
Class
- panels_display
- Forms the basis of a panel display
Code
function add_pane($pane, $location = FALSE) {
$pane->pid = $this
->next_new_pid();
if (!$location || !isset($this->panels[$location])) {
foreach ($this->panels as $panel_name => $panel) {
if (array_key_exists($pane->pid, $panel)) {
$this->panels[$panel_name][] = $pane->pid;
}
}
}
else {
$this->panels[$location][] = $pane->pid;
}
}