Commit c8284499 authored by drumm's avatar drumm

#52292 by hunmonk, multipart node forms broken

Adds a new form attribute that lets form writers hook into a conveniant place when the form building requires knowledge of the validation results.
parent 2b9d04d5
......@@ -134,6 +134,15 @@ function drupal_get_form($form_id, &$form, $callback = NULL) {
elseif (theme_get_function($callback)) {
$form['#theme'] = $callback;
if (isset($form['#pre_render'])) {
foreach ($form['#pre_render'] as $function) {
if (function_exists($function)) {
$function($form_id, $form);
return form_render($form);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment