* Added a new hook, 'AddNewAccount', which is run after account creation
authorÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 17 Aug 2005 07:44:38 +0000 (07:44 +0000)
committerÆvar Arnfjörð Bjarmason <avar@users.mediawiki.org>
Wed, 17 Aug 2005 07:44:38 +0000 (07:44 +0000)
docs/hooks.txt
includes/SpecialUserlogin.php

index ddc7e2f..b285ddc 100644 (file)
@@ -237,6 +237,9 @@ protocol came about after MediaWiki 1.4rc1.
 This is a list of known events and parameters; please add to it if
 you're going to add events to the MediaWiki code.
 
+'AddNewAccount': after a user account is created
+null: This hook passes null as an argument
+
 'ArticleDelete': before an article is deleted
 $article: the article (object) being deleted
 $user: the user (object) deleting the article
index 84b36cc..0d2b80a 100644 (file)
@@ -147,6 +147,8 @@ class LoginForm {
                        $wgUser->sendConfirmationMail();
                }
 
+               wfRunHooks( 'AddNewAccount', null );
+
                if( $this->hasSessionCookie() ) {
                        return $this->successfulLogin( wfMsg( 'welcomecreation', $wgUser->getName() ) );
                } else {