function views_ui_edit_form_submit_undo_delete_display
Submit handler to add a restore a removed display to a view.
1 string reference to 'views_ui_edit_form_submit_undo_delete_display'
- views_ui_get_display_tab_details in includes/
admin.inc - Helper function to get the display details section of the edit UI.
File
-
includes/
admin.inc, line 1434
Code
function views_ui_edit_form_submit_undo_delete_display($form, &$form_state) {
// Create the new display.
$id = $form_state['display_id'];
$form_state['view']->display[$id]->deleted = FALSE;
// Store in cache.
views_ui_cache_set($form_state['view']);
// Redirect to the top-level edit page.
$form_state['redirect'] = 'admin/structure/views/view/' . $form_state['view']->name . '/edit/' . $id;
}