dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix docs for GetUserBlock hooks
[lhc/web/wiklou.git]
/
docs
/
hooks.txt
diff --git
a/docs/hooks.txt
b/docs/hooks.txt
index
719c60f
..
a6d6c6c
100644
(file)
--- a/
docs/hooks.txt
+++ b/
docs/hooks.txt
@@
-1585,7
+1585,8
@@
entitled to be in.
$user: user to promote.
&$promote: groups that will be added.
$user: user to promote.
&$promote: groups that will be added.
-'GetBlockedStatus': after loading blocking status of an user from the database
+'GetBlockedStatus': DEPRECATED since 1.34 - use GetUserBlock instead. After
+loading blocking status of a user from the database
&$user: user (object) being checked
'GetCacheVaryCookies': Get cookies that should vary cache options.
&$user: user (object) being checked
'GetCacheVaryCookies': Get cookies that should vary cache options.
@@
-1729,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()
'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
&$block: AbstractBlock object
'getUserPermissionsErrors': Add a permissions error when permissions errors are
@@
-2827,6
+2831,7
@@
or request state must be added through MakeGlobalVariablesScript instead.
Skin is made available for skin specific config.
&$vars: [ variable name => value ]
$skin: Skin
Skin is made available for skin specific config.
&$vars: [ variable name => value ]
$skin: Skin
+$config: Config object (since 1.34)
'ResourceLoaderJqueryMsgModuleMagicWords': Called in
ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg.
'ResourceLoaderJqueryMsgModuleMagicWords': Called in
ResourceLoaderJqueryMsgModule to allow adding magic words for jQueryMsg.
@@
-2919,7
+2924,7
@@
result augmentors.
Note that lists should be in the format name => object and the names in both
lists should be distinct.
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.
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.
@@
-3175,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
'SpecialContributions::getForm::filters': Called with a list of filters to render
on Special:Contributions.
$sp: SpecialContributions object, for context
-&$filters: List of filter
s rendered as HTML
+&$filters: List of filter
object definitions (compatible with OOUI form)
'SpecialListusersDefaultQuery': Called right before the end of
UsersPager::getDefaultQuery().
'SpecialListusersDefaultQuery': Called right before the end of
UsersPager::getDefaultQuery().
@@
-3504,6
+3509,12
@@
processing.
&$archive: PageArchive object
$title: Title object of the page that we're about to undelete
&$archive: PageArchive object
$title: Title object of the page that we're about to undelete
+'UndeletePageToolLinks': Add one or more links to edit page subtitle when a page
+has been previously deleted.
+$context: IContextSource (object)
+$linkRenderer: LinkRenderer instance
+&$links: Array of HTML strings
+
'UndeleteShowRevision': Called when showing a revision in Special:Undelete.
$title: title object related to the revision
$rev: revision (object) that will be viewed
'UndeleteShowRevision': Called when showing a revision in Special:Undelete.
$title: title object related to the revision
$rev: revision (object) that will be viewed
@@
-3722,7
+3733,9
@@
$ip: User's IP address
false if a UserGetRights hook might remove the named right.
$right: The user right being checked
false if a UserGetRights hook might remove the named right.
$right: The user right being checked
-'UserIsHidden': Check if the user's name should be hidden. See User::isHidden().
+'UserIsHidden': DEPRECATED since 1.34 - use GetUserBlock instead, and add a
+system block that hides the user. Check if the user's name should be hidden.
+See User::isHidden().
$user: User in question.
&$hidden: Set true if the user's name should be hidden.
$user: User in question.
&$hidden: Set true if the user's name should be hidden.
@@
-3959,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
&$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
override ContentHandler::getDeletionDataUpdates instead.
Manipulates the list of DeferrableUpdates to be applied when a page is deleted.
$page: the WikiPage