r38040 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r38039‎ | r38040 | r38041 >
Date:18:11, 25 July 2008
Author:ashley
Status:old
Tags:
Comment:
new hook, ConfirmEmailComplete
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/docs/hooks.txt (modified) (history)
  • /trunk/phase3/includes/specials/SpecialConfirmemail.php (modified) (history)

Diff [purge]

Index: trunk/phase3/docs/hooks.txt
@@ -513,6 +513,9 @@
514514 $unpatrolled: Whether or not we are showing unpatrolled changes.
515515 $watched: Whether or not the change is watched by the user.
516516
 517+'ConfirmEmailComplete': Called after a user's email has been confirmed successfully
 518+&$user: user (object) whose email is being confirmed
 519+
517520 'ContribsPager::getQueryInfo': Before the contributions query is about to run
518521 &$pager: Pager object for contributions
519522 &queryInfo: The query for the contribs Pager
Index: trunk/phase3/includes/specials/SpecialConfirmemail.php
@@ -92,6 +92,7 @@
9393 $title = SpecialPage::getTitleFor( 'Userlogin' );
9494 $wgOut->returnToMain( true, $title );
9595 }
 96+ wfRunHooks( 'ConfirmEmailComplete', array( &$user ) );
9697 } else {
9798 $wgOut->addWikiMsg( 'confirmemail_invalid' );
9899 }
Index: trunk/phase3/RELEASE-NOTES
@@ -30,6 +30,8 @@
3131
3232 * (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow user control of
3333 search engine indexing on a per-article basis.
 34+* Added ConfirmEmailComplete hook to allow extensions to perform actions
 35+ depending on if the user's email is confirmed or not
3436
3537 === Bug fixes in 1.14 ===
3638

Follow-up revisions

RevisionCommit summaryAuthorDate
r38121Revert r38040 "new hook, ConfirmEmailComplete"...brion05:31, 28 July 2008
r57359redoing r38040: two new hooks for email confirmation/invalidation, both are i...ashley16:26, 4 October 2009

Status & tagging log