From 73b21b4f19f872329f721615d44197ee21e74d00 Mon Sep 17 00:00:00 2001 From: Ryan Schmidt Date: Wed, 13 Feb 2008 00:13:57 +0000 Subject: [PATCH] * Renamed hook 'ModifyEditButtons' to 'EditPageBeforeEditButtons' for naming consistency * Update hooks.txt --- RELEASE-NOTES | 2 +- docs/hooks.txt | 3 +++ includes/EditPage.php | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2219218a18..e947ac5a38 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -161,7 +161,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12857) Patrol link on new pages should clear floats * (bug 12968) Render redirect wikilinks in a redirect class for customization via user/site CSS. -* ModifyEditButtons hook added for altering the edit buttons below the edit box +* EditPageBeforeEditButtons hook added for altering the edit buttons below the edit box === Bug fixes in 1.12 === diff --git a/docs/hooks.txt b/docs/hooks.txt index 1ae6c4374d..e3c8a956c3 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -519,6 +519,9 @@ Alternatively, modifying $error and returning true will cause the contents of $e to be echoed at the top of the edit form as wikitext. Return true without altering $error to allow the edit to proceed. +'EditPageBeforeEditButtons': allows modifying the edit buttons below the textarea in the edit form +&$buttons: Array of edit buttons "Save", "Preview", "Live", and "Diff" + 'EditSectionLink': Override the return value of Linker::editSectionLink() $skin: Skin rendering the UI $title: Title being linked to diff --git a/includes/EditPage.php b/includes/EditPage.php index 6ee4f9888c..c20050819d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1962,7 +1962,7 @@ END ); $buttons['diff'] = wfElement('input', $temp, ''); - wfRunHooks( 'ModifyEditButtons', array( &$buttons ) ); + wfRunHooks( 'EditPageBeforeEditButtons', array( &$buttons ) ); return $buttons; } -- 2.20.1