In preparation for Drupal 6, I want to move all the files into the {files} table and use {audio_image} to link files to nodes. The attached patch takes care of the database end of things but I need to implement hook_file_download() to control access to the images.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | audio_images_db_refactoring_0.patch | 13.47 KB | drewish |
| audio_images_db_refactoring.patch | 12.74 KB | drewish |
Comments
Comment #1
drewish commentedthis implements hook_file_download() but i've realized that this will run into problems when: private file transfers, upload module enabled, users don't have 'view uploaded files' permission... not sure if there's an easy way to work around this. i may have to postpone this until the upgrade to Drupal 6.
Comment #2
drewish commentedtotally forgot about this... ended up re-implementing it here #315152: Move file info from {audio} to {files}