Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
#1913084: Introduce a Form interface for building, validating, and submitting forms modified drupal_get_form() to accept either a string form ID or an object implementing FormInterface. drupal_form_submit() needs to do the same.
Comment | File | Size | Author |
---|---|---|---|
#2 | interdiff.txt | 2.24 KB | tim.plunkett |
#2 | form-1925140-2.patch | 6.06 KB | tim.plunkett |
#1 | form-1925140-1-FAIL.patch | 2.29 KB | tim.plunkett |
#1 | form-1925140-1-PASS.patch | 4.7 KB | tim.plunkett |
Comments
Comment #1
tim.plunkettOkay, here we are. That whole docblock change is mostly rewrapping lines.
Comment #2
tim.plunkettchx asked for a helper function to reduce the duplication between drupal_form_submit and drupal_get_form, which is a good idea.
Comment #3
chx CreditAttribution: chx commentedVery simple followup, thanks.
Comment #4
webchickOoof, that's ugly. :( But apparently this is what we already did for drupal_get_form() which passed catch's watchful eye. Seems like we should make converting all forms to FormInterface a "major" task then, if it isn't already, since shipping this way would not be good...
Since this is just applying the same pattern elsewhere, and since this is a temporary shiv until conversions are complete, committed and pushed to 8.x. Thanks!