Manual:Hooks/UserLogout

From MediaWiki.org
Jump to: navigation, search
UserLogout
Available from version 1.4.0
Occurs when the software receives a request to log out

*Define function:
function fnMyHook( &$user ) { ... }

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

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


[edit] Details

  • $user: the user object that is about to be logged out

[edit] See also

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