summaryrefslogtreecommitdiff
path: root/modules/upload
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-03-14 20:13:27 +0000
committerDries Buytaert <dries@buytaert.net>2009-03-14 20:13:27 +0000
commitb46e90ad366c57095183891de56894d6a449bc14 (patch)
treeef143eea19b24d749d790b95c82658c02fb444e4 /modules/upload
parentc85fa2b0e17d59b826c8ed51cd888fe8adae249a (diff)
downloadbrdo-b46e90ad366c57095183891de56894d6a449bc14.tar.gz
brdo-b46e90ad366c57095183891de56894d6a449bc14.tar.bz2
- Patch #322344 by merlinofchaos, Frando, catch, sun: form improvements from Views.
Diffstat (limited to 'modules/upload')
-rw-r--r--modules/upload/upload.module4
1 files changed, 1 insertions, 3 deletions
diff --git a/modules/upload/upload.module b/modules/upload/upload.module
index e670c8413..27cff6cd8 100644
--- a/modules/upload/upload.module
+++ b/modules/upload/upload.module
@@ -689,13 +689,11 @@ function upload_js() {
// Render the form for output.
$form += array(
- '#post' => $_POST,
- '#programmed' => FALSE,
'#tree' => FALSE,
'#parents' => array(),
);
drupal_alter('form', $form, array(), 'upload_js');
- $form_state = array('submitted' => FALSE);
+ $form_state = array('submitted' => FALSE, 'programmed' => FALSE);
$form = form_builder('upload_js', $form, $form_state);
$output = theme('status_messages') . drupal_render($form);