You are here

function views_ui_config_item_form_add_group in Views (for Drupal 7) 8.3

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

Add a new group to the exposed filter groups.

1 string reference to 'views_ui_config_item_form_add_group'
FilterPluginBase::build_group_form in lib/Drupal/views/Plugin/views/filter/FilterPluginBase.php
Build the form to let users create the group of exposed filters. This form is displayed when users click on button 'Build group'

File

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

Code

function views_ui_config_item_form_add_group($form, &$form_state) {
  $item =& $form_state['handler']->options;

  // Add a new row.
  $item['group_info']['group_items'][] = array();
  $form_state['view']
    ->setItem($form_state['display_id'], $form_state['type'], $form_state['id'], $item);
  views_ui_cache_set($form_state['view']);
  $form_state['rerender'] = TRUE;
  $form_state['rebuild'] = TRUE;
  $form_state['force_build_group_options'] = TRUE;
}