function views_ui_config_item_extra_form_submit in Views (for Drupal 7) 8.3
Same name and namespace in other branches
- 6.3 includes/admin.inc \views_ui_config_item_extra_form_submit()
- 6.2 includes/admin.inc \views_ui_config_item_extra_form_submit()
- 7.3 includes/admin.inc \views_ui_config_item_extra_form_submit()
Submit handler for configing new item(s) to a view.
File
- views_ui/
admin.inc, line 2098 - Provides the Views' administrative interface.
Code
function views_ui_config_item_extra_form_submit($form, &$form_state) {
// Run it through the handler's submit function.
$form_state['handler']
->submitExtraOptionsForm($form['options'], $form_state);
$item = $form_state['handler']->options;
// Store the data we're given.
foreach ($form_state['values']['options'] as $key => $value) {
$item[$key] = $value;
}
// Store the item back on the view
$form_state['view']
->setItem($form_state['display_id'], $form_state['type'], $form_state['id'], $item);
// Write to cache
views_ui_cache_set($form_state['view']);
}