From 1e2d317b9c8e43d057c825aa265f15419c919e77 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Mon, 2 May 2011 11:21:37 -0700 Subject: [PATCH] remove action-specific from RequireValidatedEmail --- .../RequireValidatedEmailPlugin.php | 22 ------------------- 1 file changed, 22 deletions(-) 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.