Patch spotlight: hook_file


Help us test patches for core! This page will feature important core patches that need to be reviewed and tested. You can help with this important task even if you don't know how to code.

Drupal 7 is now officially open for development!

Currently in the spotlight: hook_file

This patch introduces hook file, to make files into a first class Drupal object. How cool is that?!

Review the patch at: http://drupal.org/node/142995

What do I do if I find a bug while testing a patch?

Try to reproduce the bug on a 'clean' copy of Drupal HEAD. For patches without database changes, you can "reverse" apply a patch to remove it:

patch -p0 -R < patchfile.patch

For patches that make changes to the database, you'll need a clean checkout elsewhere to compare against.

Check to see if the bug manifests itself without the patch. And note: don't forget to re-apply afterwards:

patch -p0 < patchfile.patch

If not, it's usually safe to assume it's caused by the current patch. Mark the issue "code needs work" and describe in detail what you experienced and how the developer can re-produce the steps.

If so, then there is a deeper problem with core... see if someone has already reported a bug on it by searching the issue queue. If