new hook, ConfirmEmailComplete
authorJack Phoenix <ashley@users.mediawiki.org>
Fri, 25 Jul 2008 18:11:43 +0000 (18:11 +0000)
committerJack Phoenix <ashley@users.mediawiki.org>
Fri, 25 Jul 2008 18:11:43 +0000 (18:11 +0000)
RELEASE-NOTES
docs/hooks.txt
includes/specials/SpecialConfirmemail.php

index 6d46e70..a390a1c 100644 (file)
@@ -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 ===
 
index 286ed7e..9b9980a 100644 (file)
@@ -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
index 9075fb9..cf20b77 100644 (file)
@@ -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' );
                }