function advuser_admin in Advanced User 6.2
Same name and namespace in other branches
- 5.2 advuser.module \advuser_admin()
- 6.3 forms/advuser_admin.inc \advuser_admin()
- 7.3 forms/advuser_admin.inc \advuser_admin()
1 string reference to 'advuser_admin'
- advuser_menu in ./
advuser.module - Implementation of hook_menu().
File
- ./
advuser.module, line 56 - Advanced user module allows you to select users based on an advanced set of filtering and apply actions to block, unblock, delete or email the selected users.
Code
function advuser_admin($callback_arg = '') {
$op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;
switch ($op) {
default:
if ($_POST['accounts'] && $_POST['operation'] == 'delete') {
$output = drupal_get_form('advuser_multiple_delete_confirm');
}
elseif ($_POST['accounts'] && $_POST['operation'] == 'email') {
$output = drupal_get_form('advuser_multiple_email_confirm');
}
else {
$output = drupal_get_form('advuser_filter_form');
$output .= drupal_get_form('advuser_admin_account');
}
break;
}
return $output;
}