You are here

function views_ui_edit_details_form_submit in Views (for Drupal 7) 7.3

Same name and namespace in other branches
  1. 8.3 views_ui/admin.inc \views_ui_edit_details_form_submit()
  2. 6.3 includes/admin.inc \views_ui_edit_details_form_submit()
  3. 6.2 includes/admin.inc \views_ui_edit_details_form_submit()

Submit handler for views_ui_edit_details_form.

File

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

Code

function views_ui_edit_details_form_submit($form, &$form_state) {
  $view = $form_state['view'];
  foreach ($form_state['values'] as $key => $value) {

    // Only save values onto the view if they're actual view properties
    // (as opposed to 'op' or 'form_build_id').
    if (isset($form['details'][$key])) {
      $view->{$key} = $value;
    }
  }
  $form_state['#page_title'] = views_ui_edit_page_title($view);
  views_ui_cache_set($view);
}