Closed (fixed)
Project:
Signup
Version:
5.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
30 Aug 2008 at 06:40 UTC
Updated:
11 Oct 2008 at 07:52 UTC
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
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.