Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
$ drush php-eval "\$r = user_roles(); print \$r[2];"
Authentifizierter Benutzer
$ drush php-eval "\$u = user_load(1); print \$u->roles[2];"
authenticated user
currently user_roles translates builtin roles 1+2,
but UserController::attachLoad (user.module:306) and user_load (user.module:577) do not.
this leads to issues with modules.
Comment | File | Size | Author |
---|---|---|---|
#2 | user-role-translation-patch-1350914.patch | 822 bytes | tayzlor |
Comments
Comment #0.0
geek-merlinfixed link
Comment #1
good_man CreditAttribution: good_man commentedI ensure that it does exist in 7.x & 8.x as well.
Comment #2
tayzlor CreditAttribution: tayzlor commentedattaching patch to add translation....
Comment #3
tayzlor CreditAttribution: tayzlor commentedComment #4
kscheirer#2: user-role-translation-patch-1350914.patch queued for re-testing.
Comment #5
kscheirerRetesting against latest HEAD since it has been over a year.
Comment #6.0
(not verified) CreditAttribution: commentedadded line
Comment #9
dpiDoes not seem to be an issue at this time