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
294
Merge Requests
294
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
a55c0d67
Commit
a55c0d67
authored
May 28, 2007
by
Dries
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Patch
#145135
by bjaspan and stefan: xhtml compliance.
parent
3b32bb6f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
includes/form.inc
includes/form.inc
+2
-2
No files found.
includes/form.inc
View file @
a55c0d67
...
...
@@ -76,7 +76,7 @@ function drupal_get_form($form_id) {
if
(
!
isset
(
$form
))
{
$form_state
[
'post'
]
=
$_POST
;
$form
=
call_user_func_array
(
'drupal_retrieve_form'
,
$args
);
$form_build_id
=
md5
(
mt_rand
());
$form_build_id
=
'form-'
.
md5
(
mt_rand
());
$form
[
'#build_id'
]
=
$form_build_id
;
drupal_prepare_form
(
$form_id
,
$form
,
$form_state
);
if
(
!
empty
(
$form
[
'#cache'
]))
{
...
...
@@ -113,7 +113,7 @@ function drupal_get_form($form_id) {
$form
=
call_user_func_array
(
'drupal_retrieve_form'
,
$args
);
// We need a new build_id for the new version of the form.
$form_build_id
=
md5
(
mt_rand
());
$form_build_id
=
'form-'
.
md5
(
mt_rand
());
$form
[
'#build_id'
]
=
$form_build_id
;
drupal_prepare_form
(
$form_id
,
$form
,
$form_state
);
...
...
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