I'm trying to develop a plugin that adds default plugins to a group when it's created. I've been looking for information but I'm lost... I read that I must follow these steps:
How can I create a hook for group creation event?
I've been looking for information about elgg_create_widget function but I don't know the parameters I should use. I found this: http://reference.elgg.org/engine_2lib_2widgets_8php.html#a288474cc7e6005993aefa6e7a8d36677
What are the handler and the context for my widget?
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.
- JohnnyD@JohnnyD
JohnnyD - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 0 likes
- M@innova_m
M - 0 likes
You must log in to post replies.Have you looked at http://community.elgg.org/plugins/384604/4.3/widget-manager ? It sounds like what you are looking for or you maybe able to change it to do what you want.
a future version of widget manager will have this functionality, we just have to check that it all works fine.
Check this pull request https://github.com/ColdTrick/widget_manager/pull/19 to see how this will probably be made possible
I already tried Widget Manager, I should change it to add default widgets automatically when a user creates a group.
In my network all groups will have the same widgets so I'd like to add them automatically, now the users must add them manually every time they create a group.
Thanks for your answers :)