Install

Works with Drupal: 7.x

Using Composer to manage Drupal site dependencies

Downloads

Download tar.gz 42.74 KB
MD5: 73eb63fd80c4decbb43cd8a4e52d4304
SHA-1: b181e297d940422a9de00d73372d152a404e2b22
SHA-256: 55470269106471c1c4200cdfb0e10c9915780088f808d9def78efa968e82bbf6
Download zip 52.7 KB
MD5: a10906fea3dccabe99f4d772e2b4de69
SHA-1: f16d918a4c1e9e63471268f10531fc19906b8e78
SHA-256: 58ab83fb0d0720810169d0dee38747e9a7f5e5a0ea80e38bab32da563687c4b4

Release notes

Generally the upgrade from Diff 2.x should be automatic, but there are a number of new features and changes that you should be aware of. These include:

  • Diff comparisons are driven by the new display view mode Revision comparison. This enables you to select what fields to compare and for those fields that lack Diff support, what formatters to use to compare the revisions. You would only need to enable this if you want to show different fields from those shown on the default view mode.
  • There are more configuration options including enhanced optional CSS and JScript options found under the Admin » Configuration » Content authoring » Diff. This area also contains the administration pages for global settings for entity and fields.
  • A string review has resulted in a number of string changes.
  • Inline diff settings are now found in the block configuration screen.

Significant changes within the code include:

  • hook_diff() has been replaced with hook_entity_diff()
  • many new field hooks and callbacks have been added.
  • system variable names have been changed so that they are entity specific and also that they are prefixed with "diff_"

Existing field support.

All core fields should be supported including term references, images, files. Additional field support includes:

If there is no field support, use the view mode Revision comparison to select the best formatter for the comparison or hide this if required. Currently field labels are controlled via the global settings, but these will eventually be controlled with the same view mode (#1837080: Use the view mode Revision comparison to control field labels display).

Change Log

Diff 7.x-2.0+13-dev to Diff 7.x-3.0
o #888680 by Deciphered, Alan D.: Allow modules to interact via drupal_alter()
o #1280892 by Alan D., crea: Diff should track the variables that it defines
o #1304658 by Alan D., kari.kaariainen: Remove links and comments from the comparison preview
o #1122206 by binford2k, Alan D.: Notices thrown by DiffEngine::process_chunk()
o #1175064 by zilverdistel, Alan D.: Provide variables for leading and trailing context
o #1673864 by Alan D.: Allow users to bypass the admin theme when viewing comparisons
o #1673876 by Alan D.: Use Drupal autoloading for classes
o #1673856 by Alan D.: Use hook_form_BASE_FORM_ID_alter() rather than hook_form_alter()
o #1673856 by Alan D.: Normalise line endings
o #114308 by Alan D.: add jQuery for hiding radios that shouldn't show diffs
o #372957 by erykmynn, JuliaKM, lsrzj, andrew_rs, alexpott, et al: HTML Strip for Diff, WYSIWYG Friendly
(This was refactored in the 7.x-3.x branch from the commited 7.x-2.x code)
o #521212 by Alan D., blakehall: Make diff comparison page themable
o #1671484 by Alan D.: Show number of lines changed on revisions page
o #114699 by smokris, Alan D.: Diff module should support Token
o #248778: Taxonomy diff
o #1550698: Diff of "select from list" fields shows change in key, not change in value
o #1458814: File (and image) field support
o #1418760: Optional setting to honour the display settings
o #1347316: Selectable view mode for inline diffs and "Current revision" display view mode
o #1458906: Improve performances (of existing 7.x-2.x field rendering)
o #1785742 by hass, rocketeerbkw, twardnw, adamdicarlo, Alan D.: Diff module string review.
o #1831534 by hass: String review leftovers.
o #1825202 by Alan D.: Simplify the Diff settings
o #1807510 by Alan D., twardnw, mitchell: Simplify the Diff administrative UI
o #1831524 by hass, Alan D.: State URL parameter typo.
o #1834750 by ottawadeveloper, Alan D.: Typo in the function diff_available_states().

Please refer to both the CHANGELOG.txt and diff.api.php for a complete list of changes.

Created by: alan d.
Created on: 10 Nov 2012 at 08:30 UTC
Last updated: 1 Nov 2013 at 23:22 UTC
New features
Bug fixes
Unsupported

Other releases