From b176270018c34fbb3e41e383c0643b318a8d7d11 Mon Sep 17 00:00:00 2001 From: Steven Wittens <steven@10.no-reply.drupal.org> Date: Thu, 27 Apr 2006 19:32:54 +0000 Subject: [PATCH] #60532: Multiple file upload broken in some browsers (fix) --- modules/upload.module | 12 ++++++++++++ modules/upload/upload.module | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/modules/upload.module b/modules/upload.module index 96481d2f28f5..22c055bbfd4d 100644 --- a/modules/upload.module +++ b/modules/upload.module @@ -592,6 +592,9 @@ function _upload_form($node) { return $form; } +/** + * Theme the attachments list. + */ function theme_upload_form_current(&$form) { $header = array(t('Delete'), t('List'), t('Description'), t('Size')); @@ -608,6 +611,15 @@ function theme_upload_form_current(&$form) { return $output; } +/** + * Theme the attachment form. + * Note: required to output prefix/suffix. + */ +function theme_upload_form_new($form) { + $output = form_render($form); + return $output; +} + function upload_load($node) { $files = array(); diff --git a/modules/upload/upload.module b/modules/upload/upload.module index 96481d2f28f5..22c055bbfd4d 100644 --- a/modules/upload/upload.module +++ b/modules/upload/upload.module @@ -592,6 +592,9 @@ function _upload_form($node) { return $form; } +/** + * Theme the attachments list. + */ function theme_upload_form_current(&$form) { $header = array(t('Delete'), t('List'), t('Description'), t('Size')); @@ -608,6 +611,15 @@ function theme_upload_form_current(&$form) { return $output; } +/** + * Theme the attachment form. + * Note: required to output prefix/suffix. + */ +function theme_upload_form_new($form) { + $output = form_render($form); + return $output; +} + function upload_load($node) { $files = array(); -- GitLab