Hello,

In the Drupal 6 version, the attachment list is not displayed when viewing the node. That's because 'upload_preview_attachments' is not declared as a theme, and thus it is never called.

The attached patch fixes this by declaring 'upload_preview_attachments' along with the other themes in 'upload_preview_theme'.

Thanks.

Comments

rmiddle’s picture

It looks like drupal.org is still having some issues. The attachment didn't make it.

Thanks
Robert

Alice Heaton’s picture

Oh yes, well I'll just include the patch here, it's fairly short :

Index: upload_preview.module
===================================================================
--- upload_preview.module	(revision 1618)
+++ upload_preview.module	(working copy)
@@ -341,7 +341,11 @@
     'upload_preview_image' => array(
       'arguments' => array('element' => NULL),
       /* 'file' => 'upload_preview.module' */
-    )
+    ),
+    'upload_preview_attachments' => array(
+      'arguments' => array('element' => NULL),
+      /* 'file' => 'upload_preview.module' */
+    ),
     );
 }
rmiddle’s picture

Status: Needs review » Fixed

Commited to CVS.

Thanks
Robert

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.