1 layout.admin.inc layout_settings_form_reset($form, &$form_state)

Submit handler for layout_settings_form() that resets in-progress changes.

File

core/modules/layout/layout.admin.inc, line 784
Administrative functions for Layout module.

Code

function layout_settings_form_reset($form, &$form_state) {
  /* @var Layout $layout */
  $layout = $form_state['layout'];
  if (isset($_SESSION['layout_new_name'])) {
    unset($_SESSION['layout_new_name']);
  }
  layout_clear_layout_tempstore($layout->name);
  backdrop_set_message(t('Layout changes discarded.'));
  $form_state['redirect'] = 'admin/structure/layouts';
}