Manual:Hooks/EditPageBeforeConflictDiff
From MediaWiki.org
| EditPageBeforeConflictDiff | |
|---|---|
| Available from version 1.13.0 Allows modifying the EditPage object and output when there's an edit conflict. |
|
*Define function: |
function fnMyHook( &$editor, &$out ) { ... }
|
*Attach hook: |
$wgHooks['EditPageBeforeConflictDiff'][] = 'fnMyHook'; |
| Called from: | EditPage.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:EditPageBeforeConflictDiff extensions.
[edit] Details
Return false to halt normal diff output; in this case you're responsible for computing and outputting the entire "conflict" part, i.e., the "difference between revisions" and "your text" headers and sections.
- &$editor: EditPage instance
- &$out: OutputPage instance