Fix #8629 : document $wgFilterCallback
authorAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Jan 2007 20:46:44 +0000 (20:46 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Mon, 15 Jan 2007 20:46:44 +0000 (20:46 +0000)
RELEASE-NOTES
includes/DefaultSettings.php

index 6b2216f..92a97dc 100644 (file)
@@ -73,6 +73,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   the appropriate permission
 * (bug 8628) Add user-aware block list link to Special:Blockip
 * (bug 8643) Correctly escape the page-specific CSS class for non-Monobook skins
+* (bug 8629) Document $wgFilterCallback
 
 == Languages updated ==
 
index 2f473ee..008ebe1 100644 (file)
@@ -1622,7 +1622,17 @@ $wgExportAllowListContributors = false ;
 /** Text matching this regular expression will be recognised as spam
  * See http://en.wikipedia.org/wiki/Regular_expression */
 $wgSpamRegex = false;
-/** Similarly if this function returns true */
+/** Similarly you can get a function to do the job. The function will be given
+ * the following args:
+ *   - a Title object for the article the edit is made on
+ *   - the text submitted in the textarea (wpTextbox1)
+ *   - the section number.
+ * The return should be boolean indicating whether the edit matched some evilness:
+ *  - true : block it
+ *  - false : let it through
+ *
+ * For a complete example, have a look at the SpamBlacklist extension.
+ */
 $wgFilterCallback = false;
 
 /** Go button goes straight to the edit screen if the article doesn't exist. */