function panels_page_save_import in Panels 6.2
Same name and namespace in other branches
- 5.2 panels_page/panels_page.admin.inc \panels_page_save_import()
Prepare an imported panel page for insertion into the database, then insert it.
Wrapper for panels_page_save().
File
- panels_page/
panels_page.write.inc, line 44 - panels_page.write.inc
Code
function panels_page_save_import(&$panel_page) {
foreach ($panel_page->displays as $id => $info) {
$imported_display = panels_save_display($info['display']);
$panel_page->displays[$id]['did'] = $imported_display->did;
unset($panel_page->displays[$id]['display']);
}
return panels_page_save($panel_page);
}