MediaWiki REL1_35
|
Stable to implement. More...
Public Member Functions | |
onWatchArticle ( $user, $page, &$status, $expiry) | |
This hook is called before a watch is added to an article. | |
Stable to implement.
Definition at line 13 of file WatchArticleHook.php.
MediaWiki\Hook\WatchArticleHook::onWatchArticle | ( | $user, | |
$page, | |||
& | $status, | ||
$expiry | |||
) |
This hook is called before a watch is added to an article.
User | $user | User that will watch |
WikiPage | $page | WikiPage object to be watched |
Status | &$status | Status object to be returned if the hook returns false |
string | null | $expiry | Optional expiry timestamp in any format acceptable to wfTimestamp() |
Implemented in MediaWiki\HookContainer\HookRunner.