I haven't actually tried out hook_file.module, but I'm just guessing that it won't be compatible with FileField, which already provides hook_file() in Drupal 6 (though an earlier version that isn't quite identical to the D7 version). I highly doubt that having both hook_file.module and FileField enabled at the same time will do anything good. Whether it works or not with FileField, there should be some kind of note the project page describing if the combination is safe.

Comments

aaron’s picture

Status: Active » Closed (works as designed)

I will not intentionally release a module that's incompatible or conflicts with a module in the top ten downloads. If you find a conflict, please open a specific issue for it.

Although that exposes the very motivation behind the push for the Media sprint. Ideally, until this is all in core, we can come up with a system that allows these modules to speak to each other. I like the idea of conditionally loading files based on a version of compatibility. I'll be sure to open a thread or three about that when the time comes.

Thanks,
Aaron