You are here

function panelizer_settings_page_form_submit in Panelizer 6

Same name and namespace in other branches
  1. 7.3 includes/admin.inc \panelizer_settings_page_form_submit()
  2. 7 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 208
Contains administrative forms and settings.

Code

function panelizer_settings_page_form_submit($form, &$form_state) {
  $values = $form_state['values']['types'];

  // Since we used #type => 'item' to fake the #process, there's a bad
  // value here. Kill it.
  foreach ($values as $type => $info) {
    unset($values[$type]['links']);
  }
  variable_set('panelizer_defaults', $values);
}