Commit e585942e authored by Steven Wittens's avatar Steven Wittens
Browse files

#53689: upload_js doesn't allow form altering with hook_form_alter

parent 0f9eaa20
......@@ -640,6 +640,10 @@ function upload_js() {
_upload_validate($node);
$form = _upload_form($node);
foreach (module_implements('form_alter') as $module) {
$function = $module .'_form_alter';
$function('upload_js', $form);
}
$form = form_builder('upload_js', $form);
$output = theme('status_messages') . form_render($form);
......
......@@ -640,6 +640,10 @@ function upload_js() {
_upload_validate($node);
$form = _upload_form($node);
foreach (module_implements('form_alter') as $module) {
$function = $module .'_form_alter';
$function('upload_js', $form);
}
$form = form_builder('upload_js', $form);
$output = theme('status_messages') . form_render($form);
......
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