X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fhooks.txt;h=a6d6c6c08efe7b074967537a68d6f14af1b57dfd;hb=c3cb10b55c832b9dc2d6805d10966549213c46b7;hp=43bfd8d4b420631285cb88ff349b87f9b343102e;hpb=f9242d74f8fdde9a3be6994274f6be23f768ffba;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/hooks.txt b/docs/hooks.txt index 43bfd8d4b4..a6d6c6c08e 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -1730,6 +1730,9 @@ $context: IContextSource 'GetUserBlock': Modify the block found by the block manager. This may be a single block or a composite block made from multiple blocks; the original blocks can be seen using CompositeBlock::getOriginalBlocks() +$user: User targeted by the block +$ip: string|null The IP of the current request if $user is the current user + and they're not exempted from IP blocks. Null otherwise. &$block: AbstractBlock object 'getUserPermissionsErrors': Add a permissions error when permissions errors are @@ -2921,7 +2924,7 @@ result augmentors. Note that lists should be in the format name => object and the names in both lists should be distinct. -'SecondaryDataUpdates': DEPRECATED! Use RevisionDataUpdates or override +'SecondaryDataUpdates': DEPRECATED since 1.32! Use RevisionDataUpdates or override ContentHandler::getSecondaryDataUpdates instead. Allows modification of the list of DataUpdates to perform when page content is modified. $title: Title of the page that is being edited. @@ -3177,7 +3180,7 @@ $row: Revision information from the database 'SpecialContributions::getForm::filters': Called with a list of filters to render on Special:Contributions. $sp: SpecialContributions object, for context -&$filters: List of filters rendered as HTML +&$filters: List of filter object definitions (compatible with OOUI form) 'SpecialListusersDefaultQuery': Called right before the end of UsersPager::getDefaultQuery(). @@ -3969,7 +3972,7 @@ dumps. One, and only one hook should set this, and return false. &$opts: Options to use for the query &$join: Join conditions -'WikiPageDeletionUpdates': DEPRECATED! Use PageDeletionDataUpdates or +'WikiPageDeletionUpdates': DEPRECATED since 1.32! Use PageDeletionDataUpdates or override ContentHandler::getDeletionDataUpdates instead. Manipulates the list of DeferrableUpdates to be applied when a page is deleted. $page: the WikiPage