function views_ui_edit_details_form_submit

Submit handler for views_ui_edit_details_form.

File

includes/admin.inc, line 3403

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);
}