'user',
'limit' => $limit,
'offset' => $offset,
'full_view' => false
);
if ($domain) {
$users = bulk_user_admin_get_users_by_email_domain($domain, $options);
$options['count'] = true;
$users_count = bulk_user_admin_get_users_by_email_domain($domain, $options);
} else {
$users = elgg_get_entities($options);
$options['count'] = true;
$users_count = elgg_get_entities($options);
}
$pagination = elgg_view('navigation/pagination', array(
'baseurl' => current_page_url(),
'offset' => $offset,
'count' => $users_count
));
$form_body = '';
foreach ($users as $user) {
$form_body .= elgg_view('bulk_user_admin/user', array('entity' => $user));
}
$delete_button = elgg_view('input/submit', array(
'value' => 'Delete checked',
));
$form_body .= $delete_button;
$site = elgg_get_config('site');
$checked_form = elgg_view('input/form', array(
'action' => $site->url . 'action/bulk_user_admin/delete',
'body' => $form_body
));
$domain_form = '';
if ($domain) {
$delete_button = "
" . elgg_view('input/submit', array(
'value' => 'Delete all in domain',
));
$hidden = elgg_view('input/hidden', array(
'name' => 'domain',
'value' => $domain
));
$form_body = $delete_button . $hidden;
$domain_form = elgg_view('input/form', array(
'action' => $site->url . 'action/bulk_user_admin/delete_by_domain',
'body' => $form_body
));
}
$summary = "