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.
The arguments to the '#process' function are $element, $edit, $form_state, $complete_form. The documentation only lists the $element and $form_state parameters.
Comment | File | Size | Author |
---|---|---|---|
#1 | 583598.patch | 974 bytes | jhodgdon |
Comments
Comment #1
jhodgdonYou are correct. Thanks for filing the issue!
I went ahead and fixed this in the Drupal 6 docs, since it's in the contrib repository. http://drupal.org/cvs?commit=269624
hook_elements does not appear any more in Drupal 7... Ah, it is now called hook_element_info(). So I have just violated protocol by fixing in Drupal 6 first. Sorry about that!
Anyway, here's a trivial doc patch for Drupal 7. In Drupal 7, the correct args are $element, $form_state, and $complete_form, as you can see in function http://api.drupal.org/api/function/form_builder/7 (where the #process function is actually called).
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedrtbc ... those docs are still nasty (whats an $element, for example) but not solvable here.
Comment #3
Dries CreditAttribution: Dries commentedCommitted to CVS HEAD.