Closed (won't fix)
Project:
Drupal core
Version:
6.x-dev
Component:
documentation
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2008 at 17:28 UTC
Updated:
6 Oct 2008 at 19:25 UTC
The documentation says that any extra arguments fed to drupal_get_form are passed on to the form constructor. After some testing and looking at the source, that appears to only happen in the multistage form case.
Comments
Comment #1
kbahey commentedChanging that to be a documentation issue, not infrastructure.
Comment #2
merlinofchaos commented1) the documentation is not specific. You need to reference a specific piece of documentation, unless you assume that there's anyone who actually has the entirely of drupal documentation memorized and knows exactly where a given piece is.
2) If you're referring to api.drupal.org documentation, that documentation is generated from code comments by api.module, and would be a bug against the code itself.
3) I think you're wrong. Those arguments do always get passed on (unless the form was retrieved from cache, anyhow) This feature is critical, and it does work, or a LOT of forms in Drupal core would completely fail. Here is the relevant code:
drupal_retrieve_form()then goes on to do some processing and passes those args through:This happens whether or not the form is multistage (in fact, there isn't really an explicit multistage form case anymore).