Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
77f55aa7
Commit
77f55aa7
authored
Dec 05, 2005
by
Dries
Browse files
- Patch
#39989
by hunmonk: can't pass args properly to #process callback.
parent
a806db88
Changes
1
Hide whitespace changes
Inline
Side-by-side
includes/form.inc
View file @
77f55aa7
...
...
@@ -269,7 +269,8 @@ function _form_builder($form_id, $form) {
if
(
isset
(
$form
[
'#process'
])
&&
!
$form
[
'#processed'
])
{
foreach
(
$form
[
'#process'
]
as
$process
=>
$args
)
{
if
(
function_exists
(
$process
))
{
$form
=
call_user_func
(
$process
,
array_merge
(
$form
,
$args
));
$args
=
array_merge
(
array
(
$form
),
$args
);
$form
=
call_user_func_array
(
$process
,
$args
);
}
}
$form
[
'#processed'
]
=
TRUE
;
...
...
Write
Preview
Supports
Markdown
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