function views_ui_config_item_form_build_group

Override handler for views_ui_edit_display_form.

1 string reference to 'views_ui_config_item_form_build_group'
views_handler_filter::show_build_group_button in handlers/views_handler_filter.inc
Shortcut to display the build_group/hide button.

File

includes/admin.inc, line 4376

Code

function views_ui_config_item_form_build_group($form, &$form_state) {
    $item =& $form_state['handler']->options;
    // flip. If the filter was a group, set back to a standard filter.
    $item['is_grouped'] = empty($item['is_grouped']);
    // If necessary, set new defaults.
    if ($item['is_grouped']) {
        $form_state['handler']->build_group_options();
    }
    $form_state['view']->set_item($form_state['display_id'], $form_state['type'], $form_state['id'], $item);
    views_ui_add_form_to_stack($form_state['form_key'], $form_state['view'], $form_state['display_id'], array(
        $form_state['type'],
        $form_state['id'],
    ), TRUE, TRUE);
    views_ui_cache_set($form_state['view']);
    $form_state['rerender'] = TRUE;
    $form_state['rebuild'] = TRUE;
    $form_state['force_build_group_options'] = TRUE;
}