function panels_edit_configure_pane_lock_form_submit in Panels 7.3
FAPI submission function for the lock configure form.
All this does is set up $pane properly. The caller is responsible for actually storing this somewhere.
File
- plugins/
display_renderers/ panels_renderer_editor.class.php, line 1911 - Class file to control the main Panels editor.
Code
function panels_edit_configure_pane_lock_form_submit($form, &$form_state) {
$pane =& $form_state['pane'];
$display = $form_state['display'];
// We set this to true but forms do not submit disabled checkboxes
// and fapi is ignoring the #value directive probably because it
// is checkboxes:
$region = $form_state['pane']->panel;
$form_state['values']['regions'][$region] = $region;
$pane->locks['type'] = $form_state['values']['type'];
$pane->locks['regions'] = array_filter($form_state['values']['regions']);
}