2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
@@ -1900,17 +1900,38 @@ function user_admin_role() {
form_set_error('name',t('You must specify a valid role name.'));
}
}
elseif($id){
// Display the role form.
if($id){
// Display the edit role form.
$role=db_fetch_object(db_query('SELECT * FROM {role} WHERE rid = %d',$id));
$form['name']=array('#type'=>'textfield','#title'=>t('Role name'),'#default_value'=>$role->name,'#size'=>30,'#maxlength'=>64,'#description'=>t('The name for this role. Example: "moderator", "editorial board", "site architect".'));