You are here

public function Field::submitGroupByForm in Views (for Drupal 7) 8.3

Perform any necessary changes to the form values prior to storage. There is no need for this function to actually store the data.

Overrides HandlerBase::submitGroupByForm

File

lib/Views/field/Plugin/views/field/Field.php, line 602
Definition of Views\field\Plugin\views\field\Field.

Class

Field
A field that displays fieldapi fields.

Namespace

Views\field\Plugin\views\field

Code

public function submitGroupByForm(&$form, &$form_state) {
  parent::submitGroupByForm($form, $form_state);
  $item =& $form_state['handler']->options;

  // Add settings for "field API" fields.
  $item['group_column'] = $form_state['values']['options']['group_column'];
  $item['group_columns'] = array_filter($form_state['values']['options']['group_columns']);
}