Index: modules/upload.module =================================================================== RCS file: /cvs/drupal/drupal/modules/upload.module,v retrieving revision 1.96 diff -u -F^f -r1.96 upload.module --- modules/upload.module 18 Apr 2006 08:32:04 -0000 1.96 +++ modules/upload.module 26 Apr 2006 05:15:20 -0000 @@ -366,8 +366,9 @@ function upload_nodeapi(&$node, $op, $te } // Add the attachments list to node body - if (count($node->files) && !$teaser) { - $node->body .= theme('upload_attachments', $node->files); + if (count($node->files)) { + $node->teaser = theme('upload_teaser', $node); + $node->body = theme('upload_body', $node, $request); } } break; @@ -418,6 +419,20 @@ function upload_nodeapi(&$node, $op, $te } /** + * Theme placement of attachments table in a teaser (exluded by default) + */ +function theme_upload_teaser($node) { + return $node->body . theme('upload_attachments', $node->files); +} + +/** + * Theme placement of attachments table in a body + */ +function theme_upload_body($node, $size) { + return $node->body . theme('upload_attachments', $node->files); +} + +/** * Displays file attachments in table */ function theme_upload_attachments($files) {