Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6076671
UserAddGroupHook.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
803 B
Referenced Files
None
Subscribers
None
UserAddGroupHook.php
View Options
<?php
namespace
MediaWiki\User\Hook
;
use
MediaWiki\User\User
;
/**
* This is a hook handler interface, see docs/Hooks.md.
* Use the hook name "UserAddGroup" to register handlers implementing this interface.
*
* @stable to implement
* @ingroup Hooks
*/
interface
UserAddGroupHook
{
/**
* This hook is called when adding a group or changing a group's expiry.
*
* @since 1.35
*
* @param User $user The user that is to have a group added
* @param string &$group The group to add; can be modified
* @param string|null &$expiry The expiry time in TS_MW format, or null if the group is not to
* expire; can be modified
* @return bool|void True or no return value to continue or false to abort (not add the group)
*/
public
function
onUserAddGroup
(
$user
,
&
$group
,
&
$expiry
);
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 5 2026, 09:22 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
aa/e7/0927d85f656d3b51c8a3b893c6ee
Default Alt Text
UserAddGroupHook.php (803 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment