Skip to:

#7249 closed enhancement (fixed)

Add action hook(s) outside the group admin form.

Reported by: David Cavins Owned by: David Cavins
Milestone: 2.7 Priority: normal
Severity: normal Version: 1.2
Component: Groups Keywords: has-patch


in bp-legacy, the only available hooks in groups/admin.php are contained within the settings form. This is great if you need to add to the form, but not so great if you need to add for example a search form on the members admin screen. Because forms can't be nested, the page goes haywire.

I know we don't like adding action hooks, but I'd like to add an action at least before the form, and it seems to make sense to add one following the form for symmetry's sake.

This change is necessary for the addition of the search form in ticket #6385.

Attachments (1)

7249.1.patch (917 bytes) - added by David Cavins 19 months ago.
Add action hooks outside the group admin form.

Download all attachments as: .zip

Change History (5)

@David Cavins
19 months ago

Add action hooks outside the group admin form.

#1 @David Cavins
19 months ago

  • Owner set to David Cavins
  • Status changed from new to accepted

#2 @r-a-y
19 months ago

I just ran into something similar recently.

You could add your own submit button in the existing hook and then do your validation routine early before BP's kicks in.

Just another way to go about it!

This ticket was mentioned in Slack in #buddypress by dcavins. View the logs.

19 months ago

#4 @David Cavins
19 months ago

  • Resolution set to fixed
  • Status changed from accepted to closed

In 11069:

Group admin: Add action hooks outside of form.

Add an action hook before and after the group settings form in

Fixes #7249.

Note: See TracTickets for help on using tickets.