Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -513,6 +513,9 @@ |
514 | 514 | $unpatrolled: Whether or not we are showing unpatrolled changes. |
515 | 515 | $watched: Whether or not the change is watched by the user. |
516 | 516 | |
| 517 | +'ConfirmEmailComplete': Called after a user's email has been confirmed successfully |
| 518 | +&$user: user (object) whose email is being confirmed |
| 519 | + |
517 | 520 | 'ContribsPager::getQueryInfo': Before the contributions query is about to run |
518 | 521 | &$pager: Pager object for contributions |
519 | 522 | &queryInfo: The query for the contribs Pager |
Index: trunk/phase3/includes/specials/SpecialConfirmemail.php |
— | — | @@ -92,6 +92,7 @@ |
93 | 93 | $title = SpecialPage::getTitleFor( 'Userlogin' ); |
94 | 94 | $wgOut->returnToMain( true, $title ); |
95 | 95 | } |
| 96 | + wfRunHooks( 'ConfirmEmailComplete', array( &$user ) ); |
96 | 97 | } else { |
97 | 98 | $wgOut->addWikiMsg( 'confirmemail_invalid' ); |
98 | 99 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -30,6 +30,8 @@ |
31 | 31 | |
32 | 32 | * (bug 8068) New __INDEX__ and __NOINDEX__ magic words allow user control of |
33 | 33 | 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 |
34 | 36 | |
35 | 37 | === Bug fixes in 1.14 === |
36 | 38 | |