Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3443915
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
drupal-3443915
Commits
d3c83c02
Commit
d3c83c02
authored
14 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#942718
by joachim: drupal_get_form() and hook_form_alter() should mention #parameters.
parent
0281833b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
includes/form.inc
+3
-1
3 additions, 1 deletion
includes/form.inc
modules/system/system.api.php
+6
-2
6 additions, 2 deletions
modules/system/system.api.php
with
9 additions
and
3 deletions
includes/form.inc
+
3
−
1
View file @
d3c83c02
...
@@ -163,7 +163,9 @@
...
@@ -163,7 +163,9 @@
* Any additional arguments are passed on to the functions called by
* Any additional arguments are passed on to the functions called by
* drupal_get_form(), including the unique form constructor function. For
* drupal_get_form(), including the unique form constructor function. For
* example, the node_edit form requires that a node object is passed in here
* example, the node_edit form requires that a node object is passed in here
* when it is called.
* when it is called. These are available to implementations of
* hook_form_alter() and hook_form_FORM_ID_alter() as the array
* $form_state['build_info']['args'].
*
*
* @return
* @return
* The form array.
* The form array.
...
...
This diff is collapsed.
Click to expand it.
modules/system/system.api.php
+
6
−
2
View file @
d3c83c02
...
@@ -1404,7 +1404,9 @@ function hook_page_alter(&$page) {
...
@@ -1404,7 +1404,9 @@ function hook_page_alter(&$page) {
* @param $form
* @param $form
* Nested array of form elements that comprise the form.
* Nested array of form elements that comprise the form.
* @param $form_state
* @param $form_state
* A keyed array containing the current state of the form.
* A keyed array containing the current state of the form. The arguments
* that drupal_get_form() was originally called with are available in the
* array $form_state['build_info']['args'].
* @param $form_id
* @param $form_id
* String representing the name of the form itself. Typically this is the
* String representing the name of the form itself. Typically this is the
* name of the function that generated the form.
* name of the function that generated the form.
...
@@ -1432,7 +1434,9 @@ function hook_form_alter(&$form, &$form_state, $form_id) {
...
@@ -1432,7 +1434,9 @@ function hook_form_alter(&$form, &$form_state, $form_id) {
* @param $form
* @param $form
* Nested array of form elements that comprise the form.
* Nested array of form elements that comprise the form.
* @param $form_state
* @param $form_state
* A keyed array containing the current state of the form.
* A keyed array containing the current state of the form. The arguments
* that drupal_get_form() was originally called with are available in the
* array $form_state['build_info']['args'].
* @param $form_id
* @param $form_id
* String representing the name of the form itself. Typically this is the
* String representing the name of the form itself. Typically this is the
* name of the function that generated the form.
* name of the function that generated the form.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment