function user_admin_access_check_submit in Drupal 4
Same name and namespace in other branches
- 5 modules/user/user.module \user_admin_access_check_submit()
- 6 modules/user/user.admin.inc \user_admin_access_check_submit()
File
- modules/
user.module, line 1563 - Enables the user registration and login system.
Code
function user_admin_access_check_submit($form_id, $edit) {
switch ($edit['type']) {
case 'user':
if (drupal_is_denied('user', $edit['test'])) {
drupal_set_message(t('The username %name is not allowed.', array(
'%name' => theme('placeholder', $edit['test']),
)));
}
else {
drupal_set_message(t('The username %name is allowed.', array(
'%name' => theme('placeholder', $edit['test']),
)));
}
break;
case 'mail':
if (drupal_is_denied('mail', $edit['test'])) {
drupal_set_message(t('The e-mail address %mail is not allowed.', array(
'%mail' => theme('placeholder', $edit['test']),
)));
}
else {
drupal_set_message(t('The e-mail address %mail is allowed.', array(
'%mail' => theme('placeholder', $edit['test']),
)));
}
break;
case 'host':
if (drupal_is_denied('host', $edit['test'])) {
drupal_set_message(t('The hostname %host is not allowed.', array(
'%host' => theme('placeholder', $edit['test']),
)));
}
else {
drupal_set_message(t('The hostname %host is allowed.', array(
'%host' => theme('placeholder', $edit['test']),
)));
}
break;
default:
break;
}
}