Hi,
I want to add extra field (site-categories to be precise) to register form and make it mandatory.
I already added the field in the form but not sure how to make it so it gets saved in database (I'm assuming it will be metadata)
Do I need to alter the register function or what would be the best aproach?
Thanks for help.
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
@rjcalifornia I really appreciate your help I just wanted to make sure I don't have to unregister first, before registering new action. I thought I read somewhere that you need to unregister first.
@Beck24 where can I find examples or reference how to hook into 'create', 'user' event ? Thanks.
@juho.jaakkola
I have input/categories in register form. So what you are suggesting is add "elgg_register_plugin_hook_handler" and the "save_user_categories" function in my plugin?
I'll try that thanks a lot.
Yes, in the plugin init function call:
And the same for the 'register', 'user' hook.
- Previous
- 1
- 2
- Next
You must log in to post replies.