function panels_display::next_new_pid in Panels 6.3
Same name and namespace in other branches
- 5.2 panels.module \panels_display::next_new_pid()
- 6.2 panels.module \panels_display::next_new_pid()
1 call to panels_display::next_new_pid()
File
- ./
panels.module, line 628 - panels.module
Class
- panels_display
- Forms the basis of a panel display
Code
function next_new_pid() {
// We don't use static vars to record the next new pid because
// temporary pids can last for years in exports and in caching
// during editing.
$id = array(
0,
);
foreach (array_keys($this->content) as $pid) {
if (!is_numeric($pid)) {
$id[] = substr($pid, 4);
}
}
$next_id = max($id);
return ++$next_id;
}