Forums
Hi
we've just started to experiment with the platform, looks quite smart and well.
One thing we wonder about: is it somehow possible to clone or set up user groups, either by edit or group select (i.e. all members with @maildomain.comn automatically belongs to a group).
Or, is there some way to clone the member add process from one course to another? Having to add everyone manually is laborious and would have been nice to avoid.
Thanks!
Hi knme,
Hi knme,
Sure, you can easily implement hook_user_insert/hook_user_presave/hook_user_update, check the mail domain, and add them to specific groups. You can add a field "domain" to the groups and check what group/groups have that domain and add the user to them.
BR
In reply to Hi knme, by James Aparicio
Thanks very much! I'll make a
On the second question
Hi knme,
Hi knme,
Didnt understand the question. Could you give more details?
Best regards
In reply to Hi knme, by James Aparicio
Ok
Hi knme,
Hi knme,
There is a module called replicate.
This allows you to duplicate a node.
You can implement the hook_replicate_entity, check the og memberships in the original node and add them to the new one.
BR