< Extension:WSOAuth < Hooks
WSOAuthBeforeAutoPopulateGroups | |
---|---|
Available from version 2.2 called before the groups in $wgOAuthAutoPopulateGroups are assigned to the authenticated user; skips the group population if false is returned |
|
Define function: | public static function onWSOAuthBeforeAutoPopulateGroups( User &$user ) { ... }
|
Attach hook: | $wgHooks['WSOAuthBeforeAutoPopulateGroups'][] = 'MyExtensionHooks::onWSOAuthBeforeAutoPopulateGroups';
|
Called from: | File(s): WSOAuth / src/WSOAuth.php Function(s): onPluggableAuthPopulateGroups |
For more information about attaching hooks, see Manual:Hooks
For examples of other extensions using this hook, see Category:WSOAuthBeforeAutoPopulateGroups extensions.
Details
- User &$user: The User object.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.