Commit 712929ea authored by Dries's avatar Dries
Browse files

- Patch #357021 by Kars-T, yched: fixed #after_build_done() set after first...

- Patch #357021 by Kars-T, yched: fixed #after_build_done() set after first after_build() function was run, instead of all after_build() functions.
parent 9fac40e0
......@@ -1179,8 +1179,8 @@ function form_builder($form_id, $element, &$form_state) {
if (isset($element['#after_build']) && !isset($element['#after_build_done'])) {
foreach ($element['#after_build'] as $function) {
$element = $function($element, $form_state);
$element['#after_build_done'] = TRUE;
}
$element['#after_build_done'] = TRUE;
}
// Now that we've processed everything, we can go back to handle the funky
......
Markdown is supported
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