Manual:Hooks/AuthPluginSetup

From MediaWiki.org
Jump to: navigation, search
AuthPluginSetup
Available from version 1.9.1
Update or replace authentication plugin object ($wgAuth). Gives a chance for an extension to set it programattically to a variable class.

*Define function:
function fnMyHook( $auth ) { ... }

*Attach hook:
$wgHooks['AuthPluginSetup'][] = 'MyExtensionHooks::someExample';
Called from: Setup.php

*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:AuthPluginSetup extensions.


[edit] Details

$auth: the $wgAuth object, probably a stub

Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox