Manual:Hooks/SpecialContributionsBeforeMainOutput

From MediaWiki.org
Jump to: navigation, search
SpecialContributionsBeforeMainOutput
Available from version 1.5.0
Before the form on Special:Contributions

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

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

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


[edit] Details

  • $id: User identifier

Note Note: Since 1.16, the return value is checked, returning false will stop normal output (bug 22051).

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