You are here

function panelizer_settings_page_form_submit in Panelizer 7

Same name and namespace in other branches
  1. 6 includes/admin.inc \panelizer_settings_page_form_submit()
  2. 7.3 includes/admin.inc \panelizer_settings_page_form_submit()
  3. 7.2 includes/admin.inc \panelizer_settings_page_form_submit()

Submit callback for the main panelizer settings form.

File

includes/admin.inc, line 201
Contains administrative forms and settings.

Code

function panelizer_settings_page_form_submit($form, &$form_state) {
  $types = $form_state['values']['types'];
  foreach ($types as $entity => $bundles) {
    foreach ($bundles as $bundle => $values) {
      variable_set('panelizer_defaults_' . $entity . '_' . $bundle, $values);
    }
  }
}