Loading otp.module +4 −4 Original line number Diff line number Diff line Loading @@ -21,12 +21,12 @@ function otp_form_user_register_form_alter(&$form, \Drupal\Core\Form\FormStateIn ); unset($_GET['destination']); } } // We remove save function call and handle it internally. if (($key = array_search('::save', $form['actions']['submit']['#submit'])) !== false) { unset($form['actions']['submit']['#submit'][$key]); } } } /** * Implements hook_form_id_alter(). Loading Loading
otp.module +4 −4 Original line number Diff line number Diff line Loading @@ -21,12 +21,12 @@ function otp_form_user_register_form_alter(&$form, \Drupal\Core\Form\FormStateIn ); unset($_GET['destination']); } } // We remove save function call and handle it internally. if (($key = array_search('::save', $form['actions']['submit']['#submit'])) !== false) { unset($form['actions']['submit']['#submit'][$key]); } } } /** * Implements hook_form_id_alter(). Loading