'create a new group' action

Hi

i am desperately trying to find the action that is bound to the "Create a new group" button of the group plugin.

I am new in elgg and would have expected that he goes into an add.php defined in that plugin. but i see there is no such file and no entry like elgg_register_action("groups/edit", "$action_base/edit.php"); for the add url.

Also he does not go into the edit.php when i edit a group which i would expect because of elgg_register_action("groups/edit", "$action_base/edit.php");. Can anybody shed some light on this plz?

thx noise

 

  • Check out the files in  mod/groups/actions directory for 1.7 and mod/groups/actions/groups/ for 1.8. Another way of finding the action name is to look at the add a group page's HTML and find the form action. You can then find the action file by using the inspect option on the developer's plugin or manually looking for elgg_register_action() like you did.

    Actions are sometimes reused, so in this case the "edit" action is the one doing the saving for new groups, too.

    FYI: In most of 1.8's plugins the action for both add and edit is called "save." Looks like groups didn't get this change for some reason.

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