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