You are here

function advuser_admin in Advanced User 5.2

Same name and namespace in other branches
  1. 6.3 forms/advuser_admin.inc \advuser_admin()
  2. 6.2 advuser.module \advuser_admin()
  3. 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 61
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;
}