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.

CommentFileSizeAuthor
send_form_state_reference.patch1.18 KBanon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

anon’s picture

Status: Active » Needs review
bojanz’s picture

Status: Needs review » Fixed

Makes sense. Committed and pushed. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.