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.
I created four profile-fields under the same category. On creation of the fields, I set the options "Visibility = Hidden", "The user must enter a value. " and "Visible in user registration form." on each field to be true. Neither on registration nor on visiting my profile as admin (there is no category tab) those additional fields are visible. The fields are created in the datebase-table "profile_fields".
Attached, you will find some screenshots.
Comment | File | Size | Author |
---|---|---|---|
#5 | 20080113.profile-hidden-fields.patch | 963 bytes | Bart Jansens |
#3 | hidden_profile-2.patch | 982 bytes | bennybobw |
#1 | hidden_profile-176503-1.patch | 793 bytes | chx |
5_0.jpg | 178.38 KB | viadimezzo |
Comments
Comment #1
chx CreditAttribution: chx commentedComment #2
Gábor HojtsyPatch looks nice, although there is a dot missing from the end of the first message. (There was a time when we did not use to have dots at the end of messages, I wonder what the current practice is). Also I would write "cannot" instead of "can not", but this should be checked by a native English speaker, I guess.
Comment #3
bennybobw CreditAttribution: bennybobw commentedI was looking through and saw a lot of dots on the ends of messages, so I added one to the first message. I changed can not to cannot and the second message reads
instead of "set to be visible."
Here's the patch, should be ready to go.
Comment #4
Gábor HojtsyThanks, committed. I guess this needs to be backported.
Comment #5
Bart Jansens CreditAttribution: Bart Jansens commentedbackported.
Comment #6
drummCommitted to 5.x.
Comment #7
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.