Drupal – Apply and Reverse a patch to a module

1. Upload the patch to the module directory.

2. Go to the module directory.

3. Run the following command.

patch -p1 < <file.patch>

 

4. To revert the change, run the following command.

patch -p1 -R < <file.patch>

 

Done =)

Reference: StackOverflow – Appliying patch in drupal modules

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.