aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail/actions/bulk_action.php
diff options
context:
space:
mode:
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-01 21:01:39 +0000
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-10-01 21:01:39 +0000
commitb04f30ecf2347104131b8dccf7bb349b5ec72762 (patch)
treee01ce61019547a4e8ccfcd66ea6cbf9247b15639 /mod/uservalidationbyemail/actions/bulk_action.php
parentb38d8fc9291ae3c9c6d64b2d950fb0b309699f22 (diff)
downloadelgg-b04f30ecf2347104131b8dccf7bb349b5ec72762.tar.gz
elgg-b04f30ecf2347104131b8dccf7bb349b5ec72762.tar.bz2
Added admin page to validate, resend validation requests, or delete unvalidated users.
git-svn-id: http://code.elgg.org/elgg/trunk@6997 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/uservalidationbyemail/actions/bulk_action.php')
-rw-r--r--mod/uservalidationbyemail/actions/bulk_action.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/mod/uservalidationbyemail/actions/bulk_action.php b/mod/uservalidationbyemail/actions/bulk_action.php
new file mode 100644
index 000000000..fbbcc1c93
--- /dev/null
+++ b/mod/uservalidationbyemail/actions/bulk_action.php
@@ -0,0 +1,18 @@
+<?php
+/**
+ * Dispatches a bulk action to real action.
+ *
+ * @package Elgg.Core.Plugin
+ * @subpackage UserValidationByEmail
+ */
+
+$action_type = get_input('action_type');
+$valid_actions = array('delete', 'resend_validation', 'validate');
+
+if (!in_array($action_type, $valid_actions)) {
+ forward(REFERRER);
+}
+
+$action_name = "uservalidationbyemail/$action_type";
+
+action($action_name); \ No newline at end of file