foreach (array_keys($form['actions']) as $action) {
if (isset($form['actions'][$action]['#type']) && $form['actions'][$action]['#type'] === 'submit') {
$form['actions'][$action]['#submit'][] = 'forgot_username_user_accountsettings_form_submit';
}
}
Above code is overwritting Account Settings form submits.
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | forgot_username-accountsettingssubmit-3080345-1-D8.patch | 702 bytes | ash2303 |
Comments
Comment #2
ash2303 commentedComment #4
kartagisCommitted and pushed to 8.x. Thank you.