Conflict with Private_upload
Laurent_ - October 2, 2009 - 12:35
| Project: | iTweak Upload |
| Version: | 6.x-2.2 |
| Component: | User interface |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Jump to:
Description
Hi,
For my specific purpose, I need to use private_upload which affect also file attachement display.
Unfortunately, this module overrides itweak display on both node edit form and node view. Whatever the itweak display settings, I get the standard Drupal attachment display.
Any idea how could we fix this ?
Thanks
Laurent

#1
Without reviewing the code of private_upload, I would try changing the weight of iTweak Upload module (by the way, 6.x-2.x-dev has a patch that sets ITU weight to 10). That should run ITU module after all regular weight modules (assuming that private_upload weight is 0). I don't have high hopes for that, but its simple and worth a try.
#2
Thanks iva2k
I've tested with the dev version and results is unfortunately the same (private_upload's weight is 1 and itweak_upload's weight is 10).
I think the issue is in the way private_upload modify the upload form. I'll investigate this.
Laurent
#3
Hi Laurent_
I used this page in order to manually modify the appareance of the upload form.
I found the same conflict with the Private Upload module and the solution was quite simple (but I don't know if it will be easily portable to the iTweak module): instead of
mytheme_theme_upload_attachments, I createdmytheme_theme_private_upload_attachments. It is the same thing formytheme_upload_form_current,mytheme_theme_private_upload_formshould be used instead. Then my changes are used after the ones of Private upload.Morthylla