You are here

function panels_page_wizard_add_content_submit in Panels 6.3

Same name and namespace in other branches
  1. 7.3 includes/page-wizard.inc \panels_page_wizard_add_content_submit()
2 calls 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.
panels_node_override_content_submit in plugins/page_wizards/node_override.inc
Store changes to the display.

File

includes/page-wizard.inc, line 57
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['cache'];

  // Copy the "being edited" cached display to the "actual" cached display.
  $cache->display =& $form_state['display'];
  unset($cache->display_cache);
}