Adding documentation for new RandomPageQuery hook to hooks.txt
authorKaldari <rkaldari@wikimedia.org>
Thu, 13 Aug 2015 06:44:53 +0000 (23:44 -0700)
committerKaldari <rkaldari@wikimedia.org>
Thu, 13 Aug 2015 06:44:53 +0000 (23:44 -0700)
Hook added in I91cd231d1

Change-Id: I448e0227b00e0e5b9390b144b9de360b8453f9ff

docs/hooks.txt

index 65ae988..bf55997 100644 (file)
@@ -2407,6 +2407,12 @@ shown.
 $article: the page the form is shown for
 $out: OutputPage object
 
+'RandomPageQuery': Lets you modify the query used by Special:Random to select
+random pages.
+&$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
+
 'RawPageViewBeforeOutput': Right before the text is blown out in action=raw.
 &$obj: RawAction object
 &$text: The text that's going to be the output