You are here

function panels_common_allowed_layouts_form_submit in Panels 7.3

Same name and namespace in other branches
  1. 6.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 457
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();
}