function user_admin

You are here

7 user.admin.inc user_admin($callback_arg = '')
4.6 user.module user_admin()
4.7 user.module user_admin()
5 user.module user_admin($callback_arg = '')
6 user.admin.inc user_admin($callback_arg = '')
1 string reference to 'user_admin'
user_menu in modules/user/user.module
Implementation of hook_menu().

File

modules/user/user.module, line 2364
Enables the user registration and login system.

Code

function user_admin($callback_arg = '') {
  $op = isset($_POST['op']) ? $_POST['op'] : $callback_arg;

  switch ($op) {
    case 'search':
    case t('Search'):
      $output = drupal_get_form('search_form', url('admin/user/search'), $_POST['keys'], 'user') . search_data($_POST['keys'], 'user');
      break;
    case t('Create new account'):
    case 'create':
      $output = drupal_get_form('user_register');
      break;
    default:
      if ($_POST['accounts'] && $_POST['operation'] == 'delete') {
        $output = drupal_get_form('user_multiple_delete_confirm');
      }
      else {
        $output = drupal_get_form('user_filter_form');
        $output .= drupal_get_form('user_admin_account');
      }
  }
  return $output;
}