function views_ui_config_style_form_submit
Same name in other branches
- 6.x-3.x includes/admin.inc \views_ui_config_style_form_submit()
Submit handler for configing new item(s) to a view.
File
-
includes/
admin.inc, line 4888
Code
function views_ui_config_style_form_submit($form, &$form_state) {
// Run it through the handler's submit function.
$form_state['handler']->options_submit($form['style_options'], $form_state);
$item = $form_state['handler']->options;
// Store the data we're given.
$item['style_options'] = $form_state['values']['style_options'];
// Store the item back on the view.
$form_state['view']->set_item($form_state['display_id'], $form_state['type'], $form_state['id'], $item);
// Write to cache.
views_ui_cache_set($form_state['view']);
}