Posted by drewish on April 19, 2009 at 6:44pm
4 followers
Jump to:
| Project: | Drupal core |
| Version: | 8.x-dev |
| Component: | file system |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
| Issue tags: | API change |
Issue Summary
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.
| Attachment | Size | Status | Test result | Operations |
|---|---|---|---|---|
| hook_file_download_obj.patch.patch | 4.71 KB | Idle | Failed: 10818 passes, 0 fails, 2 exceptions | View details | Re-test |
Comments
#1
The last submitted patch failed testing.
#2
bump - would be nice to have before freeze
#3
bump - let's re-roll?
#4
At the current stage in the Drupal 7 development cycle this seems to be more a feature than a bug.
Moving to Drupal 8.