diff options
Diffstat (limited to 'mod/uservalidationbyemail/views')
-rw-r--r-- | mod/uservalidationbyemail/views/default/admin/users/unvalidated.php | 10 | ||||
-rw-r--r-- | mod/uservalidationbyemail/views/default/uservalidationbyemail/unvalidated_user.php | 4 |
2 files changed, 11 insertions, 3 deletions
diff --git a/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php b/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php index bfd4a8d2e..dff1487e7 100644 --- a/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php +++ b/mod/uservalidationbyemail/views/default/admin/users/unvalidated.php @@ -8,12 +8,19 @@ // @todo pagination would be nice. // can't use elgg_list_entities() and friends because we don't use the default view for users. +$ia = elgg_set_ignore_access(TRUE); +$hidden_entities = access_get_show_hidden_status(); +access_show_hidden_entities(TRUE); + $users = elgg_get_entities(array( 'type' => 'user', 'wheres' => array(uservalidationbyemail_get_unvalidated_users_sql_where()), 'limit' => 9999, )); +access_show_hidden_entities($hidden_entities); +elgg_set_ignore_access($ia); + if ($users) { foreach ($users as $user) { $form_body .= elgg_view('uservalidationbyemail/unvalidated_user', array('user' => $user)); @@ -29,7 +36,8 @@ $form_body .= elgg_echo('uservalidationbyemail:admin:with_checked') . elgg_view( 'validate' => elgg_echo('uservalidationbyemail:admin:validate'), 'resend_validation' => elgg_echo('uservalidationbyemail:admin:resend_validation'), 'delete' => elgg_echo('uservalidationbyemail:admin:delete'), - ) + ), + 'value' => 'resend_validation', )); $form_body .= '<br />' . elgg_view('input/button', array('value' => elgg_echo('submit'))); diff --git a/mod/uservalidationbyemail/views/default/uservalidationbyemail/unvalidated_user.php b/mod/uservalidationbyemail/views/default/uservalidationbyemail/unvalidated_user.php index 06c4e633e..368be6ab9 100644 --- a/mod/uservalidationbyemail/views/default/uservalidationbyemail/unvalidated_user.php +++ b/mod/uservalidationbyemail/views/default/uservalidationbyemail/unvalidated_user.php @@ -41,12 +41,12 @@ $delete = elgg_view('output/confirmlink', array( ?> <div class="admin_settings radius8" style="border: 1px solid black; padding: 5px;"> + <?php echo $checkbox; ?><br /> + <div class="uservalidationbyemail_unvalidated_controls" style="float: right"> <?php echo "$resend_email | $validate | $delete"; ?> </div> - <?php echo $checkbox; ?> - <div class="uservalidationbyemail_unvalidated_user_details" style="margin-left: 15px; font-size: smaller;"> <?php echo $created; ?> </div> |