1.20.x layout.admin.inc | layout_menu_item_form_reset($form, &$form_state) |
Submit handler for layout_menu_item_form() that resets in-progress changes.
File
- modules/
layout/ layout.admin.inc, line 2640 - Admin page callbacks for the Layout module.
Code
function layout_menu_item_form_reset($form, &$form_state) {
$menu_item = $form_state['menu_item'];
layout_clear_layout_tempstore($menu_item->name, 'menu_item');
backdrop_set_message(t('Menu item changes discarded.'));
$form_state['redirect'] = 'admin/structure/layouts';
}