Burthsceh has uploaded a new change for review. https://gerrit.wikimedia.org/r/80764
Change subject: (bug 53305) Add a hook to MovePageForm::showForm on SpecialMovepage.php ...................................................................... (bug 53305) Add a hook to MovePageForm::showForm on SpecialMovepage.php Add hook 'SpecialMovepageForm' parameters: * $movePage MovePageForm object * $formrows string of adding form fields bug: 53305 Change-Id: Ie86cdebabfb0036fc7225278c8f92b946eda92ce --- M RELEASE-NOTES-1.22 M docs/hooks.txt M includes/specials/SpecialMovepage.php 3 files changed, 10 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/64/80764/1 diff --git a/RELEASE-NOTES-1.22 b/RELEASE-NOTES-1.22 index 239d997..723a1d8 100644 --- a/RELEASE-NOTES-1.22 +++ b/RELEASE-NOTES-1.22 @@ -193,6 +193,7 @@ * Add a mode parameter to <gallery> tag with potential options of "traditional", "nolines", "packed", "packed-overlay", or "packed-hover". * (bug 47399) A success message is now displayed after changing the password. +* (bug 53305) New hook 'SpecialMovepageForm' for adding options. === Bug fixes in 1.22 === * Disable Special:PasswordReset when $wgEnableEmail is false. Previously one diff --git a/docs/hooks.txt b/docs/hooks.txt index 1b44d14..cebde85 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2193,6 +2193,11 @@ $oldTitle: old title (object) $newTitle: new title (object) +'SpecialMovepageForm': Called before adding submit button and token +at MovePageForm::showForm. +$movePage: MovePageForm object +&$formrows: string of adding form fields + 'SpecialNewpagesConditions': Called when building sql query for Special:NewPages. &$special: NewPagesPager object (subclass of ReverseChronologicalPager) diff --git a/includes/specials/SpecialMovepage.php b/includes/specials/SpecialMovepage.php index 253e6cc..90a45b9 100644 --- a/includes/specials/SpecialMovepage.php +++ b/includes/specials/SpecialMovepage.php @@ -425,6 +425,10 @@ </tr>" ); } + $formrows = ''; + wfRunHooks( 'SpecialMovepageForm', array( $this, &$formrows ) ); + $out->addHTML( $formrows ); + $out->addHTML( " {$confirm} <tr> -- To view, visit https://gerrit.wikimedia.org/r/80764 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: Ie86cdebabfb0036fc7225278c8f92b946eda92ce Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Burthsceh <burths...@gmail.com> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits