Jump to content

Extension:Echo/Hooks/BeforeDisplayOrangeAlert

From mediawiki.org
BeforeDisplayOrangeAlert
Available from version 1.28.0 (Gerrit change 315730)

Define function:
public static function onBeforeDisplayOrangeAlert( User $user, Title $title ) { ... }
Attach hook:
$wgHooks['BeforeDisplayOrangeAlert'][] = 'MyExtensionHooks::onBeforeDisplayOrangeAlert';
Called from:File(s): Echo / EchoHooks.php
Function(s): onPersonalUrls

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

Details

[edit]
  • $user: User object
  • $title: Title object