The API documentation of hook_node() lists the parameters &$node and &$param. $param? node_form() passes $form_values as the second argument to hook_form().
Even worse, the hook docs say to set that array to HTML attributes of the <form> tag because it was supposed to be passed as a reference. Thankfully, no module I know of actually does this because it would mess up their form horribly.
I think this is a holdover from http://drupal.org/node/35434.
Comments
Comment #1
Island Usurper commentedComment #2
bdragon commentedWait, hook_node()? Where are you seeing this? I don't think there's ever been a hook_node()... Well, other than the Data API wanting to rename nodeapi to node... http://drupal.org/node/113435
Comment #3
Island Usurper commentedNeither have I, actually. What was I on that day?
I meant hook_form(). The documentation of hook_form() needs updating.
Comment #4
t-dub commentedChanging the title so it reflects the correct hook :)
Comment #5
darren ohThis documentation has not been updated since Drupal 4.6. Fixed in the following CVS commits:
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.