You are here

function panels_edit_display_settings_form_submit in Panels 6.3

Same name and namespace in other branches
  1. 7.3 includes/display-edit.inc \panels_edit_display_settings_form_submit()

Store changes from the layout settings form.

1 call to panels_edit_display_settings_form_submit()
panels_edit_display_form_submit in includes/display-edit.inc
Handle form submission of the display content editor.

File

includes/display-edit.inc, line 288

Code

function panels_edit_display_settings_form_submit($form, &$form_state) {
  $display =& $form_state['display'];
  if ($function = panels_plugin_get_function('layout', $form_state['layout'], 'settings submit')) {
    $function($form_state['values']['layout_settings'], $display, $form_state['layout'], $display->layout_settings);
  }

  // Since not all layouts have layout settings, check here in case of notices.
  if (isset($form_state['values']['layout_settings'])) {
    $display->layout_settings = $form_state['values']['layout_settings'];
  }
  if (isset($form_state['values']['display_title']['title'])) {
    $display->title = $form_state['values']['display_title']['title'];
    $display->hide_title = $form_state['values']['display_title']['hide_title'];
  }
}