Default widgets for groups

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:

  • Create a plugin hook for group creation event
  • Use elgg_create_widget() to add the widget

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:

What are the handler and the context for my widget?

Beginning Developers

Beginning Developers

This space is for newcomers, who wish to build a new plugin or to customize an existing one to their liking