The arguments to the '#process' function are $element, $edit, $form_state, $complete_form. The documentation only lists the $element and $form_state parameters.

CommentFileSizeAuthor
#1 583598.patch974 bytesjhodgdon
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jhodgdon’s picture

Version: 6.x-dev » 7.x-dev
Status: Active » Needs review
FileSize
974 bytes

You 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).

moshe weitzman’s picture

Status: Needs review » Reviewed & tested by the community

rtbc ... those docs are still nasty (whats an $element, for example) but not solvable here.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Status: Fixed » Closed (fixed)

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