From 21c114764307b2b66844c734e71d9a870146c9ae Mon Sep 17 00:00:00 2001 From: Jack Phoenix Date: Fri, 25 Jul 2008 18:11:43 +0000 Subject: [PATCH] new hook, ConfirmEmailComplete --- RELEASE-NOTES | 2 ++ docs/hooks.txt | 3 +++ includes/specials/SpecialConfirmemail.php | 1 + 3 files changed, 6 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6d46e707a5..a390a1c6a4 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -30,6 +30,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow user control of search engine indexing on a per-article basis. +* Added ConfirmEmailComplete hook to allow extensions to perform actions + depending on if the user's email is confirmed or not === Bug fixes in 1.14 === diff --git a/docs/hooks.txt b/docs/hooks.txt index 286ed7e2a4..9b9980aa48 100644 --- a/docs/hooks.txt +++ b/docs/hooks.txt @@ -513,6 +513,9 @@ $catpage: CategoryPage instance $unpatrolled: Whether or not we are showing unpatrolled changes. $watched: Whether or not the change is watched by the user. +'ConfirmEmailComplete': Called after a user's email has been confirmed successfully +&$user: user (object) whose email is being confirmed + 'ContribsPager::getQueryInfo': Before the contributions query is about to run &$pager: Pager object for contributions &queryInfo: The query for the contribs Pager diff --git a/includes/specials/SpecialConfirmemail.php b/includes/specials/SpecialConfirmemail.php index 9075fb9573..cf20b77e25 100644 --- a/includes/specials/SpecialConfirmemail.php +++ b/includes/specials/SpecialConfirmemail.php @@ -92,6 +92,7 @@ class EmailConfirmation extends UnlistedSpecialPage { $title = SpecialPage::getTitleFor( 'Userlogin' ); $wgOut->returnToMain( true, $title ); } + wfRunHooks( 'ConfirmEmailComplete', array( &$user ) ); } else { $wgOut->addWikiMsg( 'confirmemail_invalid' ); } -- 2.20.1