You are here

function views_ui_config_item_group_form_submit in Views (for Drupal 7) 8.3

Same name and namespace in other branches
  1. 6.3 includes/admin.inc \views_ui_config_item_group_form_submit()
  2. 7.3 includes/admin.inc \views_ui_config_item_group_form_submit()

Submit handler for configing group settings on a view.

File

views_ui/admin.inc, line 1987
Provides the Views' administrative interface.

Code

function views_ui_config_item_group_form_submit($form, &$form_state) {
  $item =& $form_state['handler']->options;
  $type = $form_state['type'];
  $id = $form_state['id'];
  $handler = views_get_handler($item['table'], $item['field'], $type);
  $handler
    ->init($form_state['view'], $item);
  $handler
    ->submitGroupByForm($form, $form_state);

  // 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']);
}