Add support for extentions to change Special:Mute form
authorDayllan Maza <dmaza@wikimedia.org>
Mon, 1 Jul 2019 14:14:42 +0000 (10:14 -0400)
committerDbarratt <dbarratt@wikimedia.org>
Thu, 18 Jul 2019 15:21:00 +0000 (15:21 +0000)
commitb5f384f943fc67c6601d4959dcfb9774766e1156
tree7c5344e1f727febf83bffb9a9720b1e309556d27
parent3e39ec72a693cacc6bb92364fcf610de0e8c5a25
Add support for extentions to change Special:Mute form

The hook (SpecialMuteModifyFormFields) is used to append
the option to mute/unmute notifications from a specified user.

Special:Mute handles posting and saving the fields, the only
requirement is that the field name is the same as the property
that wants to be modified.

Currently there are only two notifications "blacklists":
* `email-blacklist` is directly handled in this page 'cause it is part of core.
* `echo-notifications-blacklist` is part of Echo, so this change is required
  to support it. See I77b3ccfdce9b501e

Bug: T220163
Change-Id: I2b3eee0802cb086091f35ecce13ae77a8e7d518d
RELEASE-NOTES-1.34
docs/hooks.txt
includes/specials/SpecialMute.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/specials/SpecialMuteTest.php