Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
It should be possible to act on the $form_state in all submit and validation functions, even if its a callback.
Like abstract function formSubmit($form, $form_state);
should be abstract function formSubmit($form, &$form_state);
so the functions make sense.
See http://api.drupal.org/api/drupal/includes--form.inc/group/form_api/7 for som background info.
Comment | File | Size | Author |
---|---|---|---|
send_form_state_reference.patch | 1.18 KB | anon | |
Comments
Comment #1
anonComment #2
bojanz CreditAttribution: bojanz commentedMakes sense. Committed and pushed. Thanks!
Comment #3.0
(not verified) CreditAttribution: commentedUpdated issue summary.