function _user_admin_access_form in Drupal 4
2 calls to _user_admin_access_form()
- user_admin_access_add in modules/
user.module - Menu callback: add an access rule
- user_admin_access_edit in modules/
user.module - Menu callback: edit an access rule
File
- modules/
user.module, line 1673 - Enables the user registration and login system.
Code
function _user_admin_access_form($edit) {
$form['status'] = array(
'#type' => 'radios',
'#title' => t('Access type'),
'#default_value' => $edit['status'],
'#options' => array(
'1' => t('Allow'),
'0' => t('Deny'),
),
);
$type_options = array(
'user' => t('Username'),
'mail' => t('E-mail'),
'host' => t('Host'),
);
$form['type'] = array(
'#type' => 'radios',
'#title' => t('Rule type'),
'#default_value' => isset($type_options[$edit['type']]) ? $edit['type'] : 'user',
'#options' => $type_options,
);
$form['mask'] = array(
'#type' => 'textfield',
'#title' => t('Mask'),
'#size' => 30,
'#maxlength' => 64,
'#default_value' => $edit['mask'],
'#description' => '%: ' . t('Matches any number of characters, even zero characters') . '.<br />_: ' . t('Matches exactly one character.'),
'#required' => TRUE,
);
return $form;
}