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.
Hi!
I installed Content Profile and Content Profile User Regstration. I set CP fields to be filled at user registration page. The fields I created are all inside fieldsets, according to their categories. So I'd like to put the Drupal default registrations fields inside a fieldset.
I'd like to achieve something like the registration form on this site: http://www.tdotdating.com/user/register
Does anybody knows how to do this? Should I create a mini module and use hook_form_alter or something?
Thanks!!
Comments
Comment #1
arski CreditAttribution: arski commentedIf you're still interested, you can use hook_form_alter indeed:
Comment #2
rhymeswithcamera CreditAttribution: rhymeswithcamera commented@arski, thanks for posting this solution. The OP question and your reply is exactly what I was looking for.
Comment #3
muhammad.tanweer CreditAttribution: muhammad.tanweer commentedI needed this on Profile edit page in drupal 7. In the form, the "account" is of type "container". I changed its type to fieldset and all was good. Same should work for user register form as well. Just in case someone is trying it in D7
Comment #4
FrancoisL CreditAttribution: FrancoisL commentedHello,
just tested this solution for D7. I see now the fieldset but as result of this code my username and email fields are now hidden. Is there a way to solve this?
Thanks in advance
François