aboutsummaryrefslogtreecommitdiff
path: root/mod/uservalidationbyemail/actions/bulk_action.php
blob: fbbcc1c9373d06b065574d2d4ee9f3e6c5bcd6a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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);