Skip to content
Snippets Groups Projects
Commit c2e2027f authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #336300 by jhodgdon: updated documentation to reference the correct hook.

parent f24e031a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -855,9 +855,8 @@ function hook_update($node) {
*
* Changes made to the $node object within a hook_validate() function will
* have no effect. The preferred method to change a node's content is to use
* hook_submit() or hook_node($op='submit') instead. If it is really
* necessary to change the node at the validate stage, you can use function
* form_set_value().
* hook_node_presave() instead. If it is really necessary to change
* the node at the validate stage, you can use function form_set_value().
*
* For a detailed usage example, see node_example.module.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment