[documentation] [Documentation task] Update API documentation for hook_nodeapi

pwolanin drupal-docs at drupal.org
Mon Oct 9 23:33:02 UTC 2006


Issue status update for 
http://drupal.org/node/88051
Post a follow up: 
http://drupal.org/project/comments/add/88051

 Project:      Documentation
 Version:      <none>
 Component:    Developer Guide
 Category:     tasks
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  Jax
 Updated by:   pwolanin
-Status:       active
+Status:       fixed

This seems to have been fixed in the docs for 5.0/HEAD (5 weeks ago by
jakeg):


http://cvs.drupal.org/viewcvs/drupal/contributions/docs/developer/hooks/...


# "prepare": The node is about to be shown on the add/edit form


Somehow this change seems to have been lost when webchick branched the
docs for 4.7.  I'll add the same to the 4.7 docs.




pwolanin



Previous comments:
------------------------------------------------------------------------

Sun, 08 Oct 2006 10:34:32 +0000 : Jax

$op can also be 'prepare', this is not mentioned in the API docs:
http://api.drupal.org/api/4.7/function/hook_nodeapi


There is some mention of it here: http://drupal.org/node/22218. Having
that API documentation up-to-date would be a blessing. It's hard to
develop/debug without it.




------------------------------------------------------------------------

Mon, 09 Oct 2006 14:20:22 +0000 : pwolanin

Looks like you're correct, though I'm not quite sure what the prepare op
is for.


Do you have CVS access? anyone who does can fix the developer docs.   I
updated hook_nodeapi not too long ago since the "submit" op was
incorrrectly listed as "execute"...




------------------------------------------------------------------------

Mon, 09 Oct 2006 17:43:25 +0000 : Jax

I don't have CVS access but even if I did I don't think I would be the
person to update it with information about 'prepare'. The only thing I
know about it is what I found at the links in the issue description.
Someone with some more knowledge about the forms api should be able to
describe more clearly what it does.






More information about the documentation mailing list