summaryrefslogtreecommitdiff
path: root/modules/user.module
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2006-01-12 19:15:31 +0000
committerDries Buytaert <dries@buytaert.net>2006-01-12 19:15:31 +0000
commite136a247c37d588022b1d569f853c4eabb0bc174 (patch)
tree4afd820908791636cd9784b7d804b08d22dd7170 /modules/user.module
parentbc149ab22b25c1de47a1b28c58fdbd7c7892eff1 (diff)
downloadbrdo-e136a247c37d588022b1d569f853c4eabb0bc174.tar.gz
brdo-e136a247c37d588022b1d569f853c4eabb0bc174.tar.bz2
- Patch #40401 by driesk: fixed incorrect form conversion.
Diffstat (limited to 'modules/user.module')
-rw-r--r--modules/user.module24
1 files changed, 20 insertions, 4 deletions
diff --git a/modules/user.module b/modules/user.module
index d9036d8c9..c54232830 100644
--- a/modules/user.module
+++ b/modules/user.module
@@ -1507,10 +1507,26 @@ function user_admin_access_edit($aid = 0) {
}
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')));
- $form['type'] = array('#type' => 'radios', '#title' => t('Rule type'), '#default_value' => $edit['type'], '#options' => array('user' => t('Username'), 'mail' => t('E-mail'), 'host' => t('Host'), '#default_value' => 'host'));
- $form['mask'] = array('#type' => 'textfield', '#title' => t('Mask'), '#default_value' => $edit['mask'], '#size' => 30, '#maxlength' => 64, '#description' => '%: '. t('Matches any number of characters, even zero characters') .'.<br />_: '. t('Matches exactly one character.'), '#required' => TRUE);
-
+ $form['status'] = array(
+ '#type' => 'radios',
+ '#title' => t('Access type'),
+ '#default_value' => 0,
+ '#options' => array('1' => t('Allow'), '0' => t('Deny')),
+ );
+ $form['type'] = array(
+ '#type' => 'radios',
+ '#title' => t('Rule type'),
+ '#default_value' => 'user',
+ '#options' => array('user' => t('Username'), 'mail' => t('E-mail'), 'host' => t('Host')),
+ );
+ $form['mask'] = array(
+ '#type' => 'textfield',
+ '#title' => t('Mask'),
+ '#size' => 30,
+ '#maxlength' => 64,
+ '#description' => '%: '. t('Matches any number of characters, even zero characters') .'.<br />_: '. t('Matches exactly one character.'),
+ '#required' => TRUE,
+ );
return $form;
}