]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch '1.0.x' into testing
authorEvan Prodromou <evan@status.net>
Mon, 2 May 2011 22:25:46 +0000 (15:25 -0700)
committerEvan Prodromou <evan@status.net>
Mon, 2 May 2011 22:25:46 +0000 (15:25 -0700)
plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php

index 0d4bc4da16db8f648e1cb1623e46c0999fad28d4..fdb039afec26cc4470ebbf0edd42bd17e654e972 100644 (file)
@@ -125,28 +125,6 @@ class RequireValidatedEmailPlugin extends Plugin
         return true;
     }
 
-    /**
-     * Event handler for registration attempts; rejects the registration
-     * if email field is missing.
-     *
-     * @param Action $action Action being executed
-     *
-     * @return bool hook result code
-     */
-    function onStartRegistrationTry($action)
-    {
-        $email = $action->trimmed('email');
-
-        if (empty($email)) {
-            $action->showForm(_m('You must provide an email address to register.'));
-            return false;
-        }
-
-        // Default form will run address format validation and reject if bad.
-
-        return true;
-    }
-
     /**
      * Event handler for registration attempts; rejects the registration
      * if email field is missing.