function user_admin_check_user in Drupal 5
Same name and namespace in other branches
- 6 modules/user/user.admin.inc \user_admin_check_user()
1 string reference to 'user_admin_check_user'
- user_admin_access_check in modules/
user/ user.module - Menu callback: check an access rule
File
- modules/
user/ user.module, line 1601 - Enables the user registration and login system.
Code
function user_admin_check_user() {
$form['user'] = array(
'#type' => 'fieldset',
'#title' => t('Username'),
);
$form['user']['test'] = array(
'#type' => 'textfield',
'#title' => '',
'#description' => t('Enter a username to check if it will be denied or allowed.'),
'#size' => 30,
'#maxlength' => USERNAME_MAX_LENGTH,
);
$form['user']['type'] = array(
'#type' => 'hidden',
'#value' => 'user',
);
$form['user']['submit'] = array(
'#type' => 'submit',
'#value' => t('Check username'),
);
$form['#base'] = 'user_admin_access_check';
return $form;
}