From: Evan Prodromou Date: Mon, 2 May 2011 18:21:37 +0000 (-0700) Subject: remove action-specific from RequireValidatedEmail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1e2d317b9c8e43d057c825aa265f15419c919e77;p=quix0rs-gnu-social.git remove action-specific from RequireValidatedEmail --- diff --git a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php index 0d4bc4da16..fdb039afec 100644 --- a/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php +++ b/plugins/RequireValidatedEmail/RequireValidatedEmailPlugin.php @@ -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.