Drupal Diff for Delineating Differences


This article was published in the print magazine Drupal Watchdog, Volume 5 Issue 2, Fall/Winter 2015, on page 9, by Tag1 Publishing. The magazine was distributed at Drupalcon Barcelona, 2015-09-21.

As part of a content approval workflow, it can be valuable for editors and other people involved in the process to be able to see changes between various revisions of any given content — whether additions, deletions, or modifications. The Diff module is tailor-made for this functionality. Its configuration page (admin/config/content/diff) allows one to display any differences using the classic CSS styles or boxes, and as HTML or plain text; limit which revisions can be compared; and specify the number of leading and trailing lines of adjacent text (for providing context).

Revision differences
Figure 1. Revision differences

Copyright © 2015 Michael J. Ross. All rights reserved.