function panels_page_wizard_add_content_submit in Panels 7.3
Same name and namespace in other branches
- 6.3 includes/page-wizard.inc \panels_page_wizard_add_content_submit()
Add content form submit handler.
This is not a proper submit handler, it is meant to be called by a form's submit handler to handle submission.
1 call to panels_page_wizard_add_content_submit()
- panels_landing_page_submit in plugins/
page_wizards/ landing_page.inc - Submit function to store the form data in our cache.
File
- includes/
page-wizard.inc, line 75 - Contains helper functions for the Panels page wizards.
Code
function panels_page_wizard_add_content_submit(&$form, &$form_state) {
// Call the normal panels edit form submit to make sure values are stored
// on the display.
panels_edit_display_form_submit($form, $form_state);
$cache =& $form_state['wizard cache'];
// Copy the "being edited" cached display to the "actual" cached display.
$cache->display =& $form_state['display'];
unset($cache->display_cache);
}