function views_ui_config_item_form_add_group in Views (for Drupal 7) 7.3
Same name and namespace in other branches
- 8.3 views_ui/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'
- views_handler_filter::build_group_form in handlers/
views_handler_filter.inc - Build the form to let users create the group of exposed filters.
File
- includes/
admin.inc, line 4410 - 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']
->set_item($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;
}