[documentation] [bug] node changes in hook_validation
yched
drupal-docs at drupal.org
Tue Feb 21 15:15:01 UTC 2006
Issue status update for
http://drupal.org/node/50534
Post a follow up:
http://drupal.org/project/comments/add/50534
Project: Documentation
Version: <none>
Component: Developer Guide
Category: bug reports
Priority: normal
Assigned to: Anonymous
Reported by: yched
Updated by: yched
Status: active
in contributions\docs\developer\hooks\node.php, the description for
hook_validate reads :
"It can also be used to make changes to the node before submission,
such as node-type-specific formatting.
"
I would like it very much to be true, but according to all my attempts,
it is not.
Besides, all hook_validate functions in core (that is, node validation
hooks, not form validation hooks...) are declared with :function
whatever_validate($node) {
...and not
function whatever_validate(&$node) {
...
yched
More information about the documentation
mailing list