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.
As found out in #1760270: Comment translation broken?, there's a notice for form elements with a #type, which is a perfectly valid thing to do.
Comment | File | Size | Author |
---|---|---|---|
#1 | check-if-type-isset-1802452-1-set-access.patch | 756 bytes | Berdir |
#1 | check-if-type-isset-1802452-1-do-not-set-access.patch | 753 bytes | Berdir |
Comments
Comment #1
BerdirAnd here's the patch.
Not sure if #access should be set in that case or not, here's a patch for both approaches.
Comment #2
plachI'm afraid we need to recurse into typeless elements.
Comment #3
plachWe'll address this in #1798456: Hide shared form elements when the user has not the related permission.
Comment #4
plach