You are here

function opigno_class_form_alter in Opigno class 8

Same name and namespace in other branches
  1. 3.x opigno_class.module \opigno_class_form_alter()

Implements hook_form_alter().

File

./opigno_class.module, line 71
Contains opigno_class.module.

Code

function opigno_class_form_alter(&$form, FormStateInterface $form_state, $form_id) {
  if (in_array($form_id, [
    'group_opigno_class_add_form',
    'group_opigno_class_edit_form',
  ])) {
    $form['actions']['submit']['#submit'][] = '_opigno_class_group_membership_add_form_submit';
  }
}