Manual:Hooks/IRCLineURL

Category:MediaWiki hooks#IRCLineURL Category:Hooks added in MediaWiki 1.18.0#IRCLineURL
IRCLineURL
Available from version 1.18.0 (r94995, CodeReview archive)
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.phpCategory:MediaWiki hooks included in IRCColourfulRCFeedFormatter.php#IRCLineURL
Interface: IRCLineURLHook.php

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

Details

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
Category:Hooks added in MediaWiki 1.18.0 Category:MediaWiki hooks Category:MediaWiki hooks included in IRCColourfulRCFeedFormatter.php