Closed (won't fix)
Project:
Drupal core
Version:
7.x-dev
Component:
forms system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Feb 2009 at 07:01 UTC
Updated:
16 Oct 2013 at 15:19 UTC
Right now, after a successful form submission, Drupal always does either a redirect (most common) or rebuilds the form (if #redirect is set to FALSE). For Ajax form submission, this is not enough choices. There needs to be someway to override this behavior. I am proposing the addition of a hook before the drupal_form_redirect in drupal_form_process.
This hook used to be part of #193311: Ajax Popups in Drupal 7: Adding Modal Dialogs to Help, Confirmations and Filter tips (Unified) and, along with a drupal_goto patch soon to be submitted, forms a basis of adding more power to #374646: Popbox (Popups Lite): Adding Modal Dialogs to Confirmations.
| Comment | File | Size | Author |
|---|---|---|---|
| process_form_redirect.patch | 915 bytes | starbow |
Comments
Comment #1
Frando commentedIn which way does this relate to #322344: (notice) Form improvements from Views? There, we add a 'rerender' property to $form_state that can be set to FALSE to suppress rerendering the form. I think #322344: (notice) Form improvements from Views is mostly ready to go, likely just needs a reroll and doc improvements.
Comment #2
starbow commented@Frando, thanks for the pointer. I didn't know about that issue, and will go check it out.
Comment #3
starbow commentedOk, this idea could be implemented much more cleanly if #322344: (notice) Form improvements from Views gets in.
Comment #4
pasqualleas I see with the form improvements this change is not needed any more