Manual:Hooks/SpecialStatsAddExtra
From MediaWiki.org
SpecialStatsAddExtra | |
---|---|
Available from version 1.16.0 Can be used to add extra statistic at the end of Special:Statistics. |
|
Define function: |
public static function onSpecialStatsAddExtra( &$extraStats ) { ... } |
Attach hook: |
$wgHooks['SpecialStatsAddExtra'][] = 'MyExtensionHooks::onSpecialStatsAddExtra'; |
Called from: | SpecialStatistics.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialStatsAddExtra extensions.
[edit] Details
- &$extraStats: Array to save the new stats ( $extraStats['<name of statistic>'] => <value>; )