function panels_page_save_import in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.write.inc \panels_page_save_import()
Prepare an imported panel page for insertion into the database, then insert it.
Wrapper for panels_page_save().
1 call to panels_page_save_import()
- panels_page_edit_form_submit in panels_page/
panels_page.admin.inc - Process submission of the panel page edit form
File
- panels_page/
panels_page.admin.inc, line 992 - panels_page.admin.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);
}