blob: 4a14482df197d2810895b3ab6a9f27c08d442457 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
<?php
/**
* Admin area to view, validate, resend validation email, or delete unvalidated users.
*
* @package Elgg.Core.Plugin
* @subpackage UserValidationByEmail.Administration
*/
// @todo pagination would be nice.
$users = uservalidationbyemail_get_unvalidated_users();
if ($users) {
foreach ($users as $user) {
$form_body .= elgg_view('uservalidationbyemail/unvalidated_user', array('user' => $user));
}
} else {
echo elgg_echo('uservalidationbyemail:admin:no_unvalidated_users');
return;
}
$form_body .= elgg_echo('uservalidationbyemail:admin:with_checked') . elgg_view('input/pulldown', array(
'internalname' => 'action_type',
'options_values' => array(
'validate' => elgg_echo('uservalidationbyemail:admin:validate'),
'resend_validation' => elgg_echo('uservalidationbyemail:admin:resend_validation'),
'delete' => elgg_echo('uservalidationbyemail:admin:delete'),
)
));
$form_body .= '<br />' . elgg_view('input/button', array('value' => elgg_echo('submit')));
echo elgg_view('input/form', array(
'action' => $vars['url'] . 'action/uservalidationbyemail/bulk_action',
'body' => $form_body
));
|