diff options
author | DannyS712 <DannyS712.enwiki@gmail.com> | 2020-06-01 01:31:00 +0000 |
---|---|---|
committer | DannyS712 <DannyS712.enwiki@gmail.com> | 2020-06-10 20:41:00 +0000 |
commit | 0e915c0b638cc5c99714f45f19867a1c8e249f73 (patch) | |
tree | 2518df52742f12a80e61a6a7f30350b413c8ce79 /docs/hooks.txt | |
parent | 4e2897575ad6c57b26b8d4615999c7b1ebabec38 (diff) | |
download | mediawikicore-0e915c0b638cc5c99714f45f19867a1c8e249f73.tar.gz mediawikicore-0e915c0b638cc5c99714f45f19867a1c8e249f73.zip |
Add `PageSaveComplete` hook to replace `PageContent(Insert|Save)Complete`
Bug: T250566
Change-Id: I8e515ad9d344cb31e59bcfc87a717ca2b93feee2
Diffstat (limited to 'docs/hooks.txt')
-rw-r--r-- | docs/hooks.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/docs/hooks.txt b/docs/hooks.txt index 861bcf7a0849..f8c97c2f89e0 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2450,7 +2450,8 @@ $categories: associative array, keys are category names, values are category [&]$out: OutputPage instance (object) $parserOutput: parserOutput instance being added in $out -'PageContentInsertComplete': After a new article is created. +'PageContentInsertComplete': DEPRECATED since 1.35, use PageSaveComplete instead. +After a new article is created. [&]$wikiPage: WikiPage created [&]$user: User creating the article $content: New content as a Content object @@ -2483,7 +2484,8 @@ $section: Previously the section number being edited. Currently unused, always n [&]$status: StatusValue object for the hook handlers resulting status. Either set $status->fatal() or return false to abort the save action. -'PageContentSaveComplete': After an article has been updated. +'PageContentSaveComplete': DEPRECATED since 1.35, use PageSaveComplete instead. +After an article has been updated. [&]$wikiPage: WikiPage modified [&]$user: User performing the modification $content: New content, as a Content object |