The name field is filled by default for registered users, how do I make that apply for e-mail and a custom profile-field to?

Comments

dww’s picture

Status: Active » Fixed

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.

Cheers,
-Derek

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.