Manual:Hooks/CustomEditor
From MediaWiki.org
| CustomEditor | |
|---|---|
| Available from version 1.9.1 When invoking the page editor. Return true to allow the normal editor to be used, or false if implementing a custom editor, e.g. for a special namespace, etc. |
|
Define function: |
public static function onCustomEditor( $article, $user ) { ... }
|
Attach hook: |
$wgHooks['CustomEditor'][] = 'MyExtensionHooks::onCustomEditor'; |
| Called from: | Wiki.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:CustomEditor extensions.
Details [edit]
$article - Article being edited
$user - User performing the edit
