Skip to content
Snippets Groups Projects
Commit 4f97a2a9 authored by Neil Drumm's avatar Neil Drumm :wave:
Browse files

#81193 by chx. Pass $edit to #process functions.

parent e57fac56
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -639,7 +639,7 @@ function form_builder($form_id, $form) { ...@@ -639,7 +639,7 @@ function form_builder($form_id, $form) {
if (isset($form['#process']) && !$form['#processed']) { if (isset($form['#process']) && !$form['#processed']) {
foreach ($form['#process'] as $process => $args) { foreach ($form['#process'] as $process => $args) {
if (function_exists($process)) { if (function_exists($process)) {
$args = array_merge(array($form), $args); $args = array_merge(array($form), array($edit), $args);
$form = call_user_func_array($process, $args); $form = call_user_func_array($process, $args);
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment