Index: trunk/phase3/docs/hooks.txt |
— | — | @@ -564,6 +564,9 @@ |
565 | 565 | $unpatrolled: Whether or not we are showing unpatrolled changes. |
566 | 566 | $watched: Whether or not the change is watched by the user. |
567 | 567 | |
| 568 | +'ConfirmEmailComplete': Called after a user's email has been confirmed successfully |
| 569 | +&$user: user (object) whose email is being confirmed |
| 570 | + |
568 | 571 | 'ContribsPager::getQueryInfo': Before the contributions query is about to run |
569 | 572 | &$pager: Pager object for contributions |
570 | 573 | &queryInfo: The query for the contribs Pager |
— | — | @@ -844,6 +847,9 @@ |
845 | 848 | &$text: string containing partially parsed text |
846 | 849 | &$this->mStripState: Parser's internal StripState object |
847 | 850 | |
| 851 | +'InvalidateEmailComplete': Called after a user's email has been invalidated successfully |
| 852 | +&$user: user (object) whose email is being invalidated |
| 853 | + |
848 | 854 | 'IsFileCacheable': Override the result of Article::isFileCacheable() (if true) |
849 | 855 | $article: article (object) being checked |
850 | 856 | |
Index: trunk/phase3/includes/User.php |
— | — | @@ -2946,6 +2946,7 @@ |
2947 | 2947 | */ |
2948 | 2948 | function confirmEmail() { |
2949 | 2949 | $this->setEmailAuthenticationTimestamp( wfTimestampNow() ); |
| 2950 | + wfRunHooks( 'ConfirmEmailComplete', array( &$this ) ); |
2950 | 2951 | return true; |
2951 | 2952 | } |
2952 | 2953 | |
— | — | @@ -2960,6 +2961,7 @@ |
2961 | 2962 | $this->mEmailToken = null; |
2962 | 2963 | $this->mEmailTokenExpires = null; |
2963 | 2964 | $this->setEmailAuthenticationTimestamp( null ); |
| 2965 | + wfRunHooks( 'InvalidateEmailComplete', array( &$this ) ); |
2964 | 2966 | return true; |
2965 | 2967 | } |
2966 | 2968 | |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -237,6 +237,8 @@ |
238 | 238 | * New permission 'sendemail' added. Default right for all registered users. Can |
239 | 239 | for example be used to prevent new accounts from sending spam. |
240 | 240 | * (bug 16979) Tracking categories for __INDEX__ and __NOINDEX__ |
| 241 | +* Two new hooks, ConfirmEmailComplete and InvalidateEmailComplete, which are |
| 242 | + called after a user's email has been successfully confirmed or invalidated. |
241 | 243 | |
242 | 244 | === Bug fixes in 1.16 === |
243 | 245 | |