Jump to content

Manual:Hooks/IRCLineURL

From mediawiki.org
IRCLineURL
Available from version 1.18.0 (r94995, codereview)
When constructing the URL to use in an IRC notification.
Define function:
public static function onIRCLineURL( &$url, &$query, RecentChange $rc ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"IRCLineURL": "MediaWiki\\Extension\\MyExtension\\Hooks::onIRCLineURL"
	}
}
Called from: File(s): rcfeed/IRCColourfulRCFeedFormatter.php
Interface: IRCLineURLHook.php

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


Details

[edit]

Callee may modify $url and $query, URL will be constructed as $url . $query

  • &$url: URL to index.php
  • &$query: Query string
  • RecentChange $rc: The change the url and query were generated for