Skip to content
Snippets Groups Projects
Commit 4ce4c4eb authored by Angie Byron's avatar Angie Byron
Browse files

#743124 by ldpm: Small correction to hook_form_alter() docs.

parent e0be60f6
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
...@@ -1255,7 +1255,7 @@ function hook_page_alter(&$page) { ...@@ -1255,7 +1255,7 @@ function hook_page_alter(&$page) {
* Perform alterations before a form is rendered. * Perform alterations before a form is rendered.
* *
* One popular use of this hook is to add form elements to the node form. When * One popular use of this hook is to add form elements to the node form. When
* altering a node form, the node object retrieved at from $form['#node']. * altering a node form, the node object can be accessed at $form['#node'].
* *
* Note that instead of hook_form_alter(), which is called for all forms, you * Note that instead of hook_form_alter(), which is called for all forms, you
* can also use hook_form_FORM_ID_alter() to alter a specific form. For each * can also use hook_form_FORM_ID_alter() to alter a specific form. For each
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment