The default function theme_upload_attachments() doesn't allow to customize the attachment list for each node type. This function should have the node as optional parameter, and then search for a theme_[nodetype]_upload_attachments() function: if the function exists the attachment list is displayed using that function, otherwise the default theme_upload_attachments() will be used.
This what the attached patch does.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | mw.patch | 1.34 KB | moshe weitzman |
| upload.patch_0.txt | 1000 bytes | stefano@tipic.com |
Comments
Comment #1
moshe weitzman commentedHere is a small patch which submits the whole node to the theme function so it can take smart action based on node type if needed.
Comment #2
Anonymous (not verified) commentedThe last submitted patch failed testing.
Comment #3
webchickUpload module has been removed from Drupal 7, and 6.x is closed to API changes. Closing.