Recipe 90: Applying a Patch
Note
Ingredients
Patch utility, or Eclipse IDE
A D rupal patch is a text file containing an update to Drupal code. Patches may include bug fixes or additional features. One great thing about Drupal patches is that the special text format makes code changes easy to read. Another is that patches are easy to install—far less time-consuming or error-prone than having to manually update code.
The following is a screenshot of a simple patch to correct spelling. Minus signs signal the original file (either a backed-up file or the original file located on CVS). Plus signs signal the edits made to the new file. Surrounding code is also provided for context.
The steps below are generic, but each step is followed by a specific detailed example. We will find and apply a patch that enables email field sorting and filtering.
Identify the patch in the issue queue and copy its URL to the clipboard. There is a bit of an art to this. Use the issue queue Search (Recipe 88) wisely and...