You are here

function views_ui_import_submit in Views (for Drupal 7) 7.3

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

Submit handler for view import.

1 string reference to 'views_ui_import_submit'
views_ui_import_page in includes/admin.inc
Import a view from cut & paste.

File

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

Code

function views_ui_import_submit($form, &$form_state) {

  // Store in cache and then go to edit.
  views_ui_cache_set($form_state['view']);
  $form_state['redirect'] = 'admin/structure/views/view/' . $form_state['view']->name . '/edit';
}