Manual:Hooks/InfoAction

From MediaWiki.org
Jump to: navigation, search
InfoAction
Available from version 1.20.0 (Gerrit change 26743)
When building information to display on the action=info page
Define function:
public static function onInfoAction( $context, &$pageInfo ) { ... }
Attach hook:
$wgHooks['InfoAction'][] = 'MyExtensionHooks::onInfoAction';
Called from: File(s): InfoAction.php

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

Details[edit]

  • $context: IContextSource object
  • &$pageInfo: Array of information