Opened 8 years ago
Closed 8 years ago
#7249 closed enhancement (fixed)
Add action hook(s) outside the group admin form.
Reported by: |
|
Owned by: |
|
---|---|---|---|
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)
Change History (5)
#2
@
8 years 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!
Add action hooks outside the group admin form.