You are here

function panelizer_settings_form_submit in Panelizer 7.2

Same name and namespace in other branches
  1. 6 includes/common.inc \panelizer_settings_form_submit()
  2. 7.3 includes/common.inc \panelizer_settings_form_submit()
  3. 7 includes/common.inc \panelizer_settings_form_submit()

Submit callback

File

includes/common.inc, line 99
Contains common forms and routines that different object types use.

Code

function panelizer_settings_form_submit(&$form, &$form_state) {
  $panelizer = $form_state['panelizer'];
  $panelizer->no_blocks = $form_state['values']['no_blocks'];
  $panelizer->css = $form_state['values']['css'];
  $panelizer->css_id = $form_state['values']['css_id'];
  $panelizer->pipeline = $form_state['values']['pipeline'];
  if (!empty($form_state['has title'])) {
    $panelizer->title = $form_state['values']['title'];
  }

  // NOTE: We do not save in the submit so that the form can be re-used.
}