Skip to:
Content

#7249 closed enhancement (fixed)

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

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

Description

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 dcavins 21 months ago.
Add action hooks outside the group admin form.

Download all attachments as: .zip

Change History (5)

@dcavins
21 months ago

Add action hooks outside the group admin form.

#1 @dcavins
21 months ago

  • Owner set to dcavins
  • Status changed from new to accepted

#2 @r-a-y
21 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.


21 months ago

#4 @dcavins
21 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
groups/single/admin/php.

Fixes #7249.

Note: See TracTickets for help on using tickets.