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

Advertisements

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s