Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
a) it's not clear why you want to ask them for that info again since you already have it when they registered for your site.
b) if you insist, then look at the theme_signup_user_form() function in signup.theme. There's a comment where we pre-fill the name field based on the global $user object (the currently logged in user). So, anything in the $user object could be used to provide a '#default_value' for your various custom fields. Just look at how it works already and modify to taste.
Comments
Comment #1
dwwa) it's not clear why you want to ask them for that info again since you already have it when they registered for your site.
b) if you insist, then look at the theme_signup_user_form() function in signup.theme. There's a comment where we pre-fill the name field based on the global $user object (the currently logged in user). So, anything in the $user object could be used to provide a '#default_value' for your various custom fields. Just look at how it works already and modify to taste.
Cheers,
-Derek
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.