function views_ui_remove_display_form_restore
3.x admin.inc | views_ui_remove_display_form_restore($form, &$form_state) |
2.x admin.inc | views_ui_remove_display_form_restore($form, &$form_state) |
Submit handler to add a restore a removed display to a view.
File
- includes/
admin.inc, line 2986 - Provides the Views' administrative interface.
Code
function views_ui_remove_display_form_restore($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']);
}