diff options
author | Gergő Tisza <tgr.huwiki@gmail.com> | 2023-01-29 16:16:54 -0800 |
---|---|---|
committer | Gergő Tisza <tgr.huwiki@gmail.com> | 2023-01-29 17:50:15 -0800 |
commit | 4d7f46af95e8bf2738ef3630a244b911b97dd174 (patch) | |
tree | 435916e349dabe0414f3ff9f622e59d7c5a2f602 /includes/HookContainer | |
parent | bf6b5751db163e053966c48a8383764e4450cab1 (diff) | |
download | mediawikicore-4d7f46af95e8bf2738ef3630a244b911b97dd174.tar.gz mediawikicore-4d7f46af95e8bf2738ef3630a244b911b97dd174.zip |
Add SpecialCreateAccountsBenefits hook
Add a new hook for modifying the hero message on the signup page.
Bug: T325655
Change-Id: Ifea5cd0674f71e267a931a64a48c8ea5d052b334
Diffstat (limited to 'includes/HookContainer')
-rw-r--r-- | includes/HookContainer/HookRunner.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/HookContainer/HookRunner.php b/includes/HookContainer/HookRunner.php index 2ea66017d80d..fbd42ce9b028 100644 --- a/includes/HookContainer/HookRunner.php +++ b/includes/HookContainer/HookRunner.php @@ -337,6 +337,7 @@ class HookRunner implements \MediaWiki\Hook\SpecialBlockModifyFormFieldsHook, \MediaWiki\Hook\SpecialContributionsBeforeMainOutputHook, \MediaWiki\Hook\SpecialContributions__formatRow__flagsHook, + \MediaWiki\Hook\SpecialCreateAccountBenefitsHook, \MediaWiki\Hook\SpecialExportGetExtraPagesHook, \MediaWiki\Hook\SpecialContributions__getForm__filtersHook, \MediaWiki\Hook\SpecialListusersDefaultQueryHook, @@ -3560,6 +3561,13 @@ class HookRunner implements ); } + public function onSpecialCreateAccountBenefits( ?string &$html, array $info, array &$options ) { + return $this->container->run( + 'SpecialCreateAccountBenefits', + [ &$html, $info, &$options ] + ); + } + public function onSpecialExportGetExtraPages( $inputPages, &$extraPages ) { return $this->container->run( 'SpecialExportGetExtraPages', |