Commit 77f55aa7 authored by Dries's avatar Dries
Browse files

- Patch #39989 by hunmonk: can't pass args properly to #process callback.

parent a806db88
......@@ -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;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment