X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=docs%2Fhooks.txt;h=ee38ea9d4a4bdd3a51b74526f59225186adaf874;hp=1f4a5f4da4394aa66d41503a0301b10c9fdc50c9;hb=09bf4f5bb2eacbae1b9d54f19752d9ba999eae24;hpb=9dcc56b3c9e7a3212d0900ee23808b9402cad952 diff --git a/docs/hooks.txt b/docs/hooks.txt index 1f4a5f4da4..ee38ea9d4a 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -2810,14 +2810,14 @@ called after the addition of 'qunit' and MediaWiki testing resources. added to any module. &$ResourceLoader: object -'RevisionRecordInserted': Called after a revision is inserted into the database. -$revisionRecord: the RevisionRecord that has just been inserted. - -'RevisionInsertComplete': DEPRECATED! Use RevisionRecordInserted hook instead. -Called after a revision is inserted into the database. -$revision: the Revision -$data: DEPRECATED! Always null! -$flags: DEPRECATED! Always null! +'RevisionInsertComplete': Called after a revision is inserted into the database. +&$revision: the Revision +$data: the data stored in old_text. The meaning depends on $flags: if external + is set, it's the URL of the revision text in external storage; otherwise, + it's the revision text itself. In either case, if gzip is set, the revision + text is gzipped. +$flags: a comma-delimited list of strings representing the options used. May + include: utf8 (this will always be set for new revisions); gzip; external. 'SearchableNamespaces': An option to modify which namespaces are searchable. &$arr: Array of namespaces ($nsId => $name) which will be used.