Pass old user options in PreferencesFormPreSave hook
authorPiotr Miazga <piotr@polishdeveloper.pl>
Tue, 4 Jul 2017 18:30:45 +0000 (20:30 +0200)
committerPiotr Miazga <piotr@polishdeveloper.pl>
Wed, 5 Jul 2017 15:12:12 +0000 (17:12 +0200)
commitd8101d8ba148fb2a9e2d0fcb3373417623dab587
treee80401e61f5ec3060a09d21a82a02757e670bce7
parent6a8fcd3a7e387d6172a540b87f7ccae0a39e45f6
Pass old user options in PreferencesFormPreSave hook

Changes:
 - added one argument to PreferencesFormPreSave hook,
   a $oldUserOptions array which contains set of all user
   options before save
 - updated documentation

Bug: T169365
Change-Id: I28003c5898d64031e1efb212cb0bec58ff44b958
docs/hooks.txt
includes/Preferences.php
tests/phpunit/includes/PreferencesTest.php