You are here

function user_admin in Drupal 5

Same name and namespace in other branches
  1. 4 modules/user.module \user_admin()
  2. 6 modules/user/user.admin.inc \user_admin()
  3. 7 modules/user/user.admin.inc \user_admin()
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;
}