$output.='<div class="mask">'.form_textfield(t('Mask'),'mask',$edit['mask'],32,64,'%: '.t('Matches any number of characters, even zero characters').'.<br />_: '.t('Matches exactly one character.'),NULL,TRUE).'</div>';
return$output;
}
functionuser_roles($membersonly=0,$permission=0){
...
...
@@ -1565,11 +1598,6 @@ function user_configure() {
}
switch($op){
caset('Add rule'):
caset('Check'):
case'access':
$output=user_admin_access($edit);
break;
caset('Save permissions'):
case'permission':
$output=user_admin_perm($edit);
...
...
@@ -1623,11 +1651,7 @@ function user_help($section) {
case'admin/user/account/create':
returnt('<p>This web page allows the administrators to register a new users by hand. Note that you cannot have a user where either the e-mail address or the username match another user in the system.</p>');
case'admin/user/configure/access':
returnt('<p>Access rules allow Drupal administrators to choose usernames and e-mail address that are prevented from using drupal. To enter the mask for e-mail addresses click on <a href="%email">e-mail rules</a>, for the username mask click on <a href="%username">name rules</a>.</p>',array('%email'=>url('admin/user/configure/access/mail'),'%username'=>url('admin/user/configure/access/user')));
case'admin/user/configure/access/mail':
returnt('<p>Setup and test the e-mail access rules. The access function checks if you match a deny and not an allow. If you match <strong>only</strong> a deny then it is denied. Any other case, such as both a deny and an allow pattern matching, allows the pattern.</p>');
case'admin/user/configure/access/user':
returnt('<p>Setup and test the username access rules. The access function checks if you match a deny and not an allow. If you do then it is denied. Any other case, such as a deny pattern and an allow pattern, allows the pattern.</p>');
return'<p>'.t('Set up username and e-mail address access rules for new accounts. If a username or email address for a new account matches any deny rule, but not an allow rule, then the new account will not be allowed to be created.').'</p>';
case'admin/user/configure/permission':
returnt('<p>In this area you will define the permissions for each user role (role names are defined on the <a href="%role">user roles page</a>). Each permission describes a fine-grained logical operation, such as being able to access the administration pages, or adding/modifying a user account. You could say a permission represents access granted to a user to perform a set of operations.</p>',array('%role'=>url('admin/user/configure/role')));
$output .= '<p><small>%: '. t('Matches any number of characters, even zero characters') .'.<br />_: '. t('Matches exactly one character.') .'</small></p>';
$output.='<div class="mask">'.form_textfield(t('Mask'),'mask',$edit['mask'],32,64,'%: '.t('Matches any number of characters, even zero characters').'.<br />_: '.t('Matches exactly one character.'),NULL,TRUE).'</div>';
return$output;
}
functionuser_roles($membersonly=0,$permission=0){
...
...
@@ -1565,11 +1598,6 @@ function user_configure() {
}
switch($op){
case t('Add rule'):
case t('Check'):
case 'access':
$output = user_admin_access($edit);
break;
caset('Save permissions'):
case'permission':
$output=user_admin_perm($edit);
...
...
@@ -1623,11 +1651,7 @@ function user_help($section) {
case'admin/user/account/create':
returnt('<p>This web page allows the administrators to register a new users by hand. Note that you cannot have a user where either the e-mail address or the username match another user in the system.</p>');
case'admin/user/configure/access':
return t('<p>Access rules allow Drupal administrators to choose usernames and e-mail address that are prevented from using drupal. To enter the mask for e-mail addresses click on <a href="%email">e-mail rules</a>, for the username mask click on <a href="%username">name rules</a>.</p>', array('%email' => url('admin/user/configure/access/mail'), '%username' => url('admin/user/configure/access/user')));
case 'admin/user/configure/access/mail':
return t('<p>Setup and test the e-mail access rules. The access function checks if you match a deny and not an allow. If you match <strong>only</strong> a deny then it is denied. Any other case, such as both a deny and an allow pattern matching, allows the pattern.</p>');
case 'admin/user/configure/access/user':
return t('<p>Setup and test the username access rules. The access function checks if you match a deny and not an allow. If you do then it is denied. Any other case, such as a deny pattern and an allow pattern, allows the pattern.</p>');
return'<p>'.t('Set up username and e-mail address access rules for new accounts. If a username or email address for a new account matches any deny rule, but not an allow rule, then the new account will not be allowed to be created.').'</p>';
case'admin/user/configure/permission':
returnt('<p>In this area you will define the permissions for each user role (role names are defined on the <a href="%role">user roles page</a>). Each permission describes a fine-grained logical operation, such as being able to access the administration pages, or adding/modifying a user account. You could say a permission represents access granted to a user to perform a set of operations.</p>',array('%role'=>url('admin/user/configure/role')));