You are here

function views_ui_delete_confirm_submit in Views (for Drupal 7) 6.3

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

Submit handler to delete a view.

File

includes/admin.inc, line 720
admin.inc Provides the Views' administrative interface.

Code

function views_ui_delete_confirm_submit(&$form, &$form_state) {
  $form_state['view']
    ->delete();
  views_object_cache_clear('view', $form_state['view']->name);
  drupal_set_message(t('The view has been deleted.'));
  $form_state['redirect'] = 'admin/build/views';
}