You are here

function views_ui_import_submit in Views (for Drupal 7) 6.3

Same name and namespace in other branches
  1. 6.2 includes/admin.inc \views_ui_import_submit()
  2. 7.3 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 885
admin.inc 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/build/views/edit/' . $form_state['view']->name;
}