function views_ui_edit_details_form_submit in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 6.3 includes/admin.inc \views_ui_edit_details_form_submit()
- 6.2 includes/admin.inc \views_ui_edit_details_form_submit()
- 7.3 includes/admin.inc \views_ui_edit_details_form_submit()
Submit handler for views_ui_edit_details_form.
File
- views_ui/
admin.inc, line 981 - 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->storage->{$key} = $value;
}
}
$form_state['#page_title'] = views_ui_edit_page_title($view);
views_ui_cache_set($view);
}