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 1094
Admin page callbacks for the 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';
  $form_state['no_redirect'] = FALSE;
}