function panels_common_allowed_layouts_form_submit in Panels 6.3
Same name and namespace in other branches
- 7.3 includes/common.inc \panels_common_allowed_layouts_form_submit()
1 call to panels_common_allowed_layouts_form_submit()
- panels_common_settings_submit in includes/
common.inc - Submit hook for panels_common_settings
File
- includes/
common.inc, line 415 - Functions used by more than one panels client module.
Code
function panels_common_allowed_layouts_form_submit($form, &$form_state) {
foreach ($form_state['values']['layouts'] as $layout => $setting) {
$form_state['allowed_layouts']->allowed_layout_settings[$layout] = (bool) $setting;
}
$form_state['allowed_layouts']
->save();
}