Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
drupal
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
309
Merge Requests
309
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
drupal
Commits
319220aa
Commit
319220aa
authored
Apr 28, 2009
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#331832
follow-up by jhodgdon: Fix spelling of hook_form_FORM_ID_alter().
parent
fc728323
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
modules/system/system.api.php
modules/system/system.api.php
+2
-4
No files found.
modules/system/system.api.php
View file @
319220aa
...
...
@@ -242,8 +242,8 @@ function hook_page_alter($page) {
* 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'].
*
* Note that
you can also use hook_FORM_ID_alter() to alter a specific form,
*
instead of this hook, which gets called for all forms
.
* 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
.
*
* @param $form
* Nested array of form elements that comprise the form.
...
...
@@ -252,8 +252,6 @@ function hook_page_alter($page) {
* @param $form_id
* String representing the name of the form itself. Typically this is the
* name of the function that generated the form.
* @return
* None.
*/
function
hook_form_alter
(
&
$form
,
$form_state
,
$form_id
)
{
if
(
isset
(
$form
[
'type'
])
&&
$form
[
'type'
][
'#value'
]
.
'_node_settings'
==
$form_id
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment