dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Fix undo edit summary when the user who made the old revision is hidden"
[lhc/web/wiklou.git]
/
docs
/
hooks.txt
diff --git
a/docs/hooks.txt
b/docs/hooks.txt
index
46949ea
..
f2c10ce
100644
(file)
--- a/
docs/hooks.txt
+++ b/
docs/hooks.txt
@@
-1949,11
+1949,12
@@
$data: the data stored in old_text. The meaning depends on $flags: if external
$flags: a comma-delimited list of strings representing the options used. May
include: utf8 (this will always be set for new revisions); gzip; external.
$flags: a comma-delimited list of strings representing the options used. May
include: utf8 (this will always be set for new revisions); gzip; external.
-'SearchUpdate': Prior to search update completion.
+'SearchUpdate': Prior to search update completion. Return false to stop any
+further text/content processing
$id : Page id
$id : Page id
-$namespace : Page namespace
-$title : Page title
+$title : Title object
$text : Current text being indexed
$text : Current text being indexed
+$content : Content object for text being indexed.
'SearchGetNearMatchBefore': Perform exact-title-matches in "go" searches before
the normal operations.
'SearchGetNearMatchBefore': Perform exact-title-matches in "go" searches before
the normal operations.
@@
-2425,6
+2426,7
@@
$article: article "acted on"
'UnwatchArticle': Before a watch is removed from an article.
$user: user watching
$page: WikiPage object to be removed
'UnwatchArticle': Before a watch is removed from an article.
$user: user watching
$page: WikiPage object to be removed
+&$status: Status object to be returned if the hook returns false
'UnwatchArticleComplete': After a watch is removed from an article.
$user: user that watched
'UnwatchArticleComplete': After a watch is removed from an article.
$user: user that watched
@@
-2674,6
+2676,7
@@
used to alter the SQL query which gets the list of wanted pages.
'WatchArticle': Before a watch is added to an article.
$user: user that will watch
$page: WikiPage object to be watched
'WatchArticle': Before a watch is added to an article.
$user: user that will watch
$page: WikiPage object to be watched
+&$status: Status object to be returned if the hook returns false
'WatchArticleComplete': After a watch is added to an article.
$user: user that watched
'WatchArticleComplete': After a watch is added to an article.
$user: user that watched