< Manual:Hooks 
 
      | RandomPageQuery | |
|---|---|
| Available from version 1.26.0 Modify the query used by Special:Random | |
| Define function: | public static function onRandomPageQuery( &$tables, &$conds, &$joinConds ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"RandomPageQuery": "MyExtensionHooks::onRandomPageQuery"
	}
}
 | 
| Called from: | File(s): specials/SpecialRandompage.php | 
| Interface: | RandomPageQueryHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RandomPageQuery extensions.
Details
Allows extensions to modify the query used by Special:Random.
- &$tables: Database tables to be used in the query
- &$conds: Conditions to be applied in the query
- &$joinConds: Join conditions to be applied in the query
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.