Manual:Hooks/EditPage::showStandardInputs:options
From Linux Web Expert
EditPage::showStandardInputs:options | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 32675)</tvar></translate> Allows injection of form fields into the editOptions area | |
<translate> Define function:</translate> | public static function onEditPage_showStandardInputs_options( $editor, $out, &$tabindex ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"EditPage::showStandardInputs:options": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageshowStandardInputsoptions"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> EditPage.php |
<translate> Interface:</translate> | EditPage__showStandardInputs_optionsHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:EditPage::showStandardInputs:options extensions</tvar>.</translate>
Details
- $editor: EditPage instance
- $out: OutputPage instance to write to
- &$tabindex: HTML tabindex of the last edit check/button. Should be preincremented if necessary.
The return value is ignored, and should always be true.
Purpose
If an extension needs to add something more than a button or checkboxes to the "edit options" area below the edit form, this extension may be used.