Commit d224c983 authored by Dries's avatar Dries

- Patch #326564 by nenne: fixed hook_validate() documentation.

parent e0098f2e
...@@ -1104,7 +1104,7 @@ function hook_update($node) { ...@@ -1104,7 +1104,7 @@ function hook_update($node) {
* This hook is invoked only on the module that defines the node's content type * This hook is invoked only on the module that defines the node's content type
* (use hook_node_validate() to act on all node validations). * (use hook_node_validate() to act on all node validations).
* *
* This hook is invoked from node_validate(), after a user has has finished * This hook is invoked from node_validate(), after a user has finished
* editing the node and is previewing or submitting it. It is invoked at the end * editing the node and is previewing or submitting it. It is invoked at the end
* of all the standard validation steps, and before hook_node_validate() is * of all the standard validation steps, and before hook_node_validate() is
* invoked. * invoked.
...@@ -1113,8 +1113,7 @@ function hook_update($node) { ...@@ -1113,8 +1113,7 @@ function hook_update($node) {
* *
* Note: Changes made to the $node object within your hook implementation will * Note: Changes made to the $node object within your hook implementation will
* have no effect. The preferred method to change a node's content is to use * have no effect. The preferred method to change a node's content is to use
* hook_node_presave() instead. If it is really necessary to change * hook_node_presave() instead.
* the node at the validate stage, you can use form_set_value().
* *
* @param $node * @param $node
* The node being validated. * The node being validated.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment