You are here

function views_ui_remove_display_form_restore in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/admin.inc \views_ui_remove_display_form_restore()
  2. 7.3 includes/admin.inc \views_ui_remove_display_form_restore()

Submit handler to add a restore a removed display to a view.

1 string reference to 'views_ui_remove_display_form_restore'
views_ui_remove_display_form in includes/admin.inc
Form to remove a display from a view.

File

includes/admin.inc, line 2000
admin.inc 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']);
}