function panels_layouts_ui::edit_form_submit in Panels 7.3
Same name and namespace in other branches
- 6.3 plugins/export_ui/panels_layouts_ui.class.php \panels_layouts_ui::edit_form_submit()
Handle the submission of the edit form.
At this point, submission is successful. Our only responsibility is to copy anything out of values onto the item that we are able to edit.
If the keys all match up to the schema, this method will not need to be overridden.
Overrides ctools_export_ui::edit_form_submit
File
- plugins/
export_ui/ panels_layouts_ui.class.php, line 127 - Contains the administrative UI for reusable layouts.
Class
- panels_layouts_ui
- @file Contains the administrative UI for reusable layouts.
Code
function edit_form_submit(&$form, &$form_state) {
parent::edit_form_submit($form, $form_state);
// While we short circuited the main submit hook, we need to keep this one.
panels_edit_display_settings_form_submit($form, $form_state);
$form_state['item']->settings = $form_state['display']->layout_settings;
}