CHANGELOG.txt 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. CHANGELOG for Diff 7.x-2.0+13-dev to 7.x-3.x
  2. ============================================
  3. 1) System variable names have been changed
  4. ------------------------------------------
  5. Considerable changes have occurred.
  6. 2) hook_diff() was removed
  7. --------------------------
  8. This has been replaced by hook_entity_diff() as of Diff 7.x-3.x.
  9. 3) Field diffs are handled independently by Diff and the field module
  10. ---------------------------------------------------------------------
  11. Field modules SHOULD NOT implement hook_entity_diff().
  12. This is complicated and costly in terms of performance.
  13. Two new field callbacks are defined to handle these.
  14. a) MODULE_field_diff_view_prepare()
  15. Optional: If you need to load data, use MODULE_field_diff_view_prepare().
  16. b) MODULE_field_diff_view()
  17. Recommended: You should implement this to generate the compared data.
  18. If there is no corresponding hook for a field, the field comparison will try
  19. to guess the value using $item['safe_value'] or $item['value'] properties.
  20. If you need to make this configurable, there are two additional hooks:
  21. c) MODULE_field_diff_default_options($field_type)
  22. You should define any additioal settings here. This shares a global namespace
  23. of the diff module, so you can overwrite core Diff settings here too.
  24. In saying that, take care not to accidentially do this.
  25. d) MODULE_field_diff_options_form($field_type, $settings)
  26. This is where you insert Form API elements to configure your option settings.
  27. 4) Field diffs are now configurable
  28. -----------------------------------
  29. Each field type defined by core have configurable settings to control the
  30. rendering of the comparison.
  31. a) Global configuration
  32. An administration page has been added to handle field type default settings.
  33. This is the preferred way to configure field settings are these are global to
  34. all fields of this type.
  35. b) View mode display options
  36. The display "Diff comparison" is used to control the fields that are displayed
  37. when comparing different revisions.
  38. The following is a walk-through on how you would configure the Basic page
  39. (page) content types field configuration.
  40. - Enable "Diff comparison" custom view mode
  41. Navigate to admin/structure/types/manage/page/display and look at the
  42. Custom Display Settings for this view mode. Check and save.
  43. - Configure the display
  44. After Saving this page, a new tab appears "Diff comparison", click this or
  45. navigate directly to admin/structure/types/manage/page/display/diff_standard
  46. - You can hide or show the fields that you want to display when doing
  47. comparisons.
  48. - If the field has no inbuilt diff support, then the renderred field items
  49. will be compared.
  50. 5) Standard comparison preview / Inline diff view setting
  51. ---------------------------------------------------------
  52. You can set the view modes used to compare the rendered node. This can be found
  53. in the Diff settings in the Content Type settings page.
  54. 6) Optional CSS and new Boxes styles
  55. ------------------------------------
  56. This takes the styles from WikiPedia to really spice up the diff page.
  57. 7) Optional JScript extras
  58. --------------------------
  59. This spices up the revision checkboxes on the revisions page.
  60. 8) Simple past revision token support
  61. -------------------------------------
  62. Use-case, email notifications when content has changes. If these support tokens,
  63. then you can embed Diffs into these emails.
  64. 9) Extensive string review
  65. --------------------------
  66. See http://drupal.org/node/1785742
  67. 10) Inline block settings changes
  68. ---------------------------------
  69. The inline block settings are now in the block configuration page.
  70. 11) And much more...
  71. --------------------
  72. The complete change log follows:
  73. Diff 7.x-2.x
  74. o #888680 by Deciphered, Alan D.: Allow modules to interact via drupal_alter()
  75. o #1280892 by Alan D., crea: Diff should track the variables that it defines
  76. o #1304658 by Alan D., kari.kaariainen: Remove links and comments from the comparison preview
  77. o #1122206 by binford2k, Alan D.: Notices thrown by DiffEngine::process_chunk()
  78. o #1175064 by zilverdistel, Alan D.: Provide variables for leading and trailing context
  79. o #1673864 by Alan D.: Allow users to bypass the admin theme when viewing comparisons
  80. o #1673876 by Alan D.: Use Drupal autoloading for classes
  81. o #1673856 by Alan D.: Use hook_form_BASE_FORM_ID_alter() rather than hook_form_alter()
  82. o #1673856 by Alan D.: Normalise line endings
  83. o #114308 by Alan D.: add jQuery for hiding radios that shouldn't show diffs
  84. o #1688840 by Alan D.: Enable new JScript behaviour by default
  85. o #372957 by erykmynn, JuliaKM, lsrzj, andrew_rs, alexpott, et al: HTML Strip for Diff, WYSIWYG Friendly
  86. (This was refactored in the 7.x-3.x branch from the commited 7.x-2.x code)
  87. o #521212 by Alan D., blakehall: Make diff comparison page themable
  88. o #1671484 by Alan D.: Show number of lines changed on revisions page
  89. o #114699 by smokris, Alan D.: Diff module should support Token
  90. o #372957 by c31ck: display either Hide or Show based on what clicking it will do at any time (HTML Strip for Diff)
  91. This was altered for the 7.x-3.x branch.
  92. o #1807510 & #1825202: Simplify Diff administration
  93. o #1812162 by mitchell, Alan D.: 'Highlight changes' block appears on edit form
  94. Node to Entity changes
  95. ----------------------
  96. These are roughly tracked in the meta issue #1365750 Generalize API and Integrate with core field types
  97. o (no issue) by Alan D.: Use entity specific system variables.
  98. o (no issue) by Alan D.: View mode code, new hooks, new API. Massive patch!
  99. Resolves:
  100. o #248778: Taxonomy diff
  101. o #1550698: Diff of "select from list" fields shows change in key, not change in value
  102. o #1458814: File (and image) field support
  103. o #1418760: Optional setting to honour the display settings
  104. o #1347316: Selectable view mode for inline diffs and "Current revision" display view mode
  105. o #1458906: Improve performances (of existing 7.x-2.x field rendering)
  106. o #1424162: Diff in Taxonomy term description
  107. o #1211282: Image diff support
  108. The following patches will be posted in the corresponding project queues once
  109. the 7.x-3.x branch is released:
  110. o #1595702 by Alan D., mbilbille: Support of field collection module
  111. o #1350604 by Alan D., johaziel: Datetime diff
  112. o (no issue) by Alan D.: Email field Diff support
  113. o (no issue) by Alan D.: Countries Diff support
  114. o (no issue) by Alan D.: Name field Diff support
  115. o (no issue) by Alan D.: Link field Diff support