Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -726,6 +726,7 @@ |
727 | 727 | |
728 | 728 | 'EditPage::showEditForm:initial': before showing the edit form |
729 | 729 | $editor: EditPage instance (object) |
| 730 | +$formCallback: Array for callback of modifying the edit form |
730 | 731 | |
731 | 732 | Return false to halt editing; you'll need to handle error messages, etc. |
732 | 733 | yourself. Alternatively, modifying $error and returning true will cause the |
Index: trunk/phase3/RELEASE-NOTES-1.19 |
— | — | @@ -64,6 +64,8 @@ |
65 | 65 | the relevant section of the category. |
66 | 66 | * (bug 29109) Allow the automatic edit summary for redirect creation |
67 | 67 | show the first bit of the new redirect page. |
| 68 | +* (bug 5800) Added $formCallback as a parameter to the hook |
| 69 | + EditPage::showEditForm:initial |
68 | 70 | |
69 | 71 | === Bug fixes in 1.19 === |
70 | 72 | * (bug 28868) Show total pages in the subtitle of an image on the |
Index: trunk/phase3/includes/EditPage.php |
— | — | @@ -1335,7 +1335,7 @@ |
1336 | 1336 | $previewOutput = $this->getPreviewText(); |
1337 | 1337 | } |
1338 | 1338 | |
1339 | | - wfRunHooks( 'EditPage::showEditForm:initial', array( &$this ) ); |
| 1339 | + wfRunHooks( 'EditPage::showEditForm:initial', array( &$this, &$formCallback ) ); |
1340 | 1340 | |
1341 | 1341 | $this->setHeaders(); |
1342 | 1342 | |