Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
On of my pet peeves has been the fact that hook_file_download() passes a path to a file in rather than a $file object. This forces each module to query the database to load it rather than being passed into the hook.
Comment | File | Size | Author |
---|---|---|---|
hook_file_download_obj.patch.patch | 4.71 KB | drewish | |
Comments
Comment #2
pwolanin CreditAttribution: pwolanin commentedbump - would be nice to have before freeze
Comment #3
pwolanin CreditAttribution: pwolanin commentedbump - let's re-roll?
Comment #4
tstoecklerAt the current stage in the Drupal 7 development cycle this seems to be more a feature than a bug.
Moving to Drupal 8.
Comment #5
Dave ReidComment #6
slashrsm CreditAttribution: slashrsm commentedComment #7
Gábor HojtsyFix media tag.