Manual:Hooks/GetLocalURL
From MediaWiki.org
| GetLocalURL | |
|---|---|
| Available from version 1.6.0 Used to modify local URLs as output into page links |
|
*Define function: |
function fnMyHook( $title, $url, $query ) { ... }
|
*Attach hook: |
$wgHooks['GetLocalURL'][] = 'MyExtensionHooks::someExample'; |
| Called from: | Title.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:GetLocalURL extensions.
[edit] Details
- $title: Title object of page
- $url: string value as output (out parameter, can modify)
- $query: query options passed to Title::getLocalURL()