1 views_ui.admin.inc views_ui_edit_form_submit_preview($form, &$form_state)

Submit handler when Preview button is clicked.

File

core/modules/views_ui/views_ui.admin.inc, line 1438
Provides the Views' administrative interface.

Code

function views_ui_edit_form_submit_preview($form, &$form_state) {
  // Rebuild the form with a pristine $view object.
  $form_state['build_info']['args'][0] = views_ui_cache_load($form_state['view']->name);
  $form_state['show_preview'] = TRUE;
  $form_state['rebuild'] = TRUE;
}