function panels_page_save in Panels 5.2
Same name and namespace in other branches
- 6.2 panels_page/panels_page.write.inc \panels_page_save()
Main entry point for panels_page save functions.
5 calls to panels_page_save()
- panels_page_advanced_form_submit in panels_page/
panels_page.admin.inc - Process submission of the panel page edit form.
- panels_page_context_form_submit in panels_page/
panels_page.admin.inc - Process submission of the panel page edit form.
- panels_page_edit_form_submit in panels_page/
panels_page.admin.inc - Process submission of the panel page edit form
- panels_page_save_display in panels_page/
panels_page.admin.inc - Check to see if the panel page needs to be saved due to a display having been just saved.
- panels_page_save_import in panels_page/
panels_page.admin.inc - Prepare an imported panel page for insertion into the database, then insert it.
File
- panels_page/
panels_page.admin.inc, line 1004 - panels_page.admin.inc
Code
function panels_page_save(&$panel_page) {
panels_page_sanitize($panel_page);
return empty($panel_page->pid) || $panel_page->pid == 'new' ? _panels_page_insert($panel_page) : _panels_page_update($panel_page);
}