obtain email from registration rather than profile?
webdog24 - June 10, 2007 - 19:02
| Project: | Event with volunteer time slots |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Description
Would it be possible to have an option for the roster section to show a user's email address that they entered during registration? It seems that you have to create a separate profile field where the user can enter their email address again in order to have an option for the email to show up in the roster? Is that correct? It would also be nice for the roster section to turn the emails into active links, and/or turn the user names into links to view the user's profile and additional contact info.

#1
The usernames should be links, I think. Probably wouldn't be too hard to add the e-mail address as an option too.
However, I'm pretty busy right now, so can you supply a starting patch?
#2
ahh, I think you're right about the names- this need to change:
in function _timeslots_roster_form($node)
$form['info'][$uid]['username'] = array('#value' => $account->name);to, maybe this:
$form['info'][$uid]['username'] = array('#value' => theme('username', $account));see: http://api.drupal.org/api/5/function/theme_username
#3
I would love to be able to make a patch, but I don't know how to program. So, for now I can only make suggestions. Sorry! Anyway, that's OK if you're busy. Whenever you get a chance to work on it, that's fine!
#4
here's a patch which should fix both of these bugs