I'm working on a website for student and teachers. Teachers sign up their students using the subuser module and also this module, which allows the teacher and the student to share an email address. However some students have their own email address at school. Is there a way to add an option to use the shared email/subuser module, like a checkbox? Something that would let the main user (a teacher in my case) choose weather to use their email address or add a different one.

I've notice that there is a work-around for this by switching over to the subuser account after you create it and change the email in their account settings, but I'm looking to stream line the creation process a bit.

Thanks for your help!

Comments

mlalu’s picture

I found this line of code switch seems to just hide the e-mail address field from the user. So I commented it out.
$form['account']['mail']['#type'] = 'hidden';
I tested it out and it seems to have worked. It would still be nice to have a check box that would hide and populate the field which clicked and then display the field and clear the value when unchecked.

baikho’s picture

Issue summary: View changes
Status: Active » Closed (outdated)