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
7a3d48e2
Commit
7a3d48e2
authored
12 years ago
by
David Rothstein
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#1659000
by sun: Fixed $form_id is not recorded/provided in $form_state['build_info'].
parent
55fbef32
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/form.inc
+5
-0
5 additions, 0 deletions
includes/form.inc
with
5 additions
and
0 deletions
includes/form.inc
+
5
−
0
View file @
7a3d48e2
...
...
@@ -164,6 +164,8 @@ function drupal_get_form($form_id) {
* automatically loaded by form_get_cache(). By default the current menu
* router item's 'file' definition is added, if any. Use
* form_load_include() to add include files from a form constructor.
* - form_id: Identification of the primary form being constructed and
* processed.
* - base_form_id: Identification for a base form, as declared in a
* hook_forms() implementation.
* - rebuild_info: Internal. Similar to 'build_info', but pertaining to
...
...
@@ -721,6 +723,9 @@ function drupal_form_submit($form_id, &$form_state) {
function
drupal_retrieve_form
(
$form_id
,
&
$form_state
)
{
$forms
=
&
drupal_static
(
__FUNCTION__
);
// Record the $form_id.
$form_state
[
'build_info'
][
'form_id'
]
=
$form_id
;
// Record the filepath of the include file containing the original form, so
// the form builder callbacks can be loaded when the form is being rebuilt
// from cache on a different path (such as 'system/ajax'). See
...
...
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