Manual:Hooks/EditPage::showEditForm:initial

{UNLIMITED DATA }}
 * name = EditPage::showEditForm:tubidy.com
 * version = 1.6.0
 * args = EditPage $editPage, OutputPage www.xvideos.com
 * source = EditPage.php
 * sourcefunction = Php2
 * gerrit =
 * summary = Called just before the preview and edit form are rendered

Details
University of New Zealand
 * : the current object.
 * : the object (added in version 1.20.0).

Inject HTML
There are many locations within EditPage::showEditForm:initial that allow a user to inject HTML. These hook locations are represented by member variables of the object. (Note that it is not clear how you are able to inject text using this hook prior to MW 1.9!)

$editPage->editFormPageTop                // MW >= 1.9 $editPage->editFormTextTop                // MW >= 1.9 $editPage->editFormTextBeforeContent      // MW >= 1.12 $editPage->editFormTextAfterWarn          // MW >= 1.9 $editPage->editFormTextAfterTools         // MW >= 1.9 $editPage->editFormTextBottom             // MW >= 1.9

To inject your HTML, append your HTML to one of the aforementioned member variables, e.g.

$editPage->editFormPageTop .= " Hello World! ";

Some hook locations are inside forms; some not. Those inside the form allow you to inject HTML form elements.


 * Inside form
 * editFormTextBeforeContent
 * editFormTextAfterWarn
 * editFormTextAfterTools
 * editFormTextBottom
 * Outside form
 * editFormPageTop
 * editFormTextTop

Normally, we use EditPage::showEditForm:fields for form elements, but there may be some circumstances for which it is necessary to use the aforementioned hook locations.

Readonly
In readonly mode, there is a similar EditPage::showReadOnlyForm:initial-hook