Manual:Hooks/TitleArrayFromResult
From MediaWiki.org
| TitleArrayFromResult | |
|---|---|
| Available from version 1.14.0 Called when creating an TitleArray object from a database result. |
|
*Define function: |
function fnMyHook( &$titleArray, $res ) { ... }
|
*Attach hook: |
$wgHooks['TitleArrayFromResult'][] = 'MyExtensionHooks::someExample'; |
| Called from: | TitleArray.php |
*For more information about attaching hooks, see Manual:Hooks.
*For examples of extensions using this hook, see Category:TitleArrayFromResult extensions.
[edit] Details
- &$titleArray: set this to an object to override the default object returned
- $res: database result used to create the object
