* Renamed hook 'ModifyEditButtons' to 'EditPageBeforeEditButtons' for naming consistency
authorRyan Schmidt <skizzerz@users.mediawiki.org>
Wed, 13 Feb 2008 00:13:57 +0000 (00:13 +0000)
committerRyan Schmidt <skizzerz@users.mediawiki.org>
Wed, 13 Feb 2008 00:13:57 +0000 (00:13 +0000)
* Update hooks.txt

RELEASE-NOTES
docs/hooks.txt
includes/EditPage.php

index 2219218..e947ac5 100644 (file)
@@ -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 ===
 
index 1ae6c43..e3c8a95 100644 (file)
@@ -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
index 6ee4f98..c200508 100644 (file)
@@ -1962,7 +1962,7 @@ END
                );
                $buttons['diff'] = wfElement('input', $temp, '');
                
-               wfRunHooks( 'ModifyEditButtons', array( &$buttons ) );
+               wfRunHooks( 'EditPageBeforeEditButtons', array( &$buttons ) );
                return $buttons;
        }