Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
In edge-case scenarios, #validate and #submit may not be set on a $form.
If another module tries to prepend a form handler in hook_form_alter() using array_unshift() or the like, a PHP warning is thrown.
A potential example for this might be a form that solely uses button-level submit handlers.
Comment | File | Size | Author |
---|---|---|---|
#3 | drupal.prepare-form-keys.3.patch | 932 bytes | sun |
drupal.prepare-form-keys.0.patch | 959 bytes | sun | |
Comments
Comment #1
Dave ReidCould those be located inside the if (!sset()) conditions?
Comment #2
Dave ReidCould those be located inside the if (!sset()) conditions?
Comment #3
sunVery good suggestion.
Comment #4
sun#3: drupal.prepare-form-keys.3.patch queued for re-testing.
Comment #5
tstoecklerMakes sense.
Although it's not really that hard a bite, I have been bitten by this before.
Comment #6
webchickCommitted and pushed to 8.x and 7.x. Thanks!