[buddypress-trac] [BuddyPress] #1150: Hook to allow plugins to prevent group creation

buddypress-trac at lists.automattic.com buddypress-trac at lists.automattic.com
Fri Oct 2 08:55:13 UTC 2009

#1150: Hook to allow plugins to prevent group creation
Reporter:  simonwheatley     |       Owner:       
    Type:  enhancement       |      Status:  new  
Priority:  major             |   Milestone:  1.1.1
Keywords:  groups has-patch  |  
 I'm working on a site where we don't want to allow the creation of groups
 by everybody. Looking through the group creation functions it doesn't look
 possible to restrict the creation of groups through  plugin currently, the
 hook-to-stop-group-creation.diff patch (attached) adds a hook to allow
 this to happen.

 The restrict-group-creation.php plugin (attached) shows how a plugin might
 use this new hook, and some existing ones, to disallow group creation with
 a nice user message explaining why, remove the "create group" link, and
 post a message on the first step of the group creation form explaining to
 the user that they can't create a group. I did look into actually removing
 the form fields, but this didn't appear to be possible without further
 code additions, and the measures described above seemed sufficient.

Ticket URL: <http://trac.buddypress.org/ticket/1150>
BuddyPress <http://buddypress.org/>

More information about the buddypress-trac mailing list