Commit 98fa9c87 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Add comment to explain pieforms weirdness

parent 3eb0da77
......@@ -51,6 +51,15 @@ if (!empty($membershiptype) && $role != 'admin') {
$remove = param_variable('removeuser', null);
$member = param_integer('member', null);
if ($remove && $member) {
// Create the remove user pieform for the user that's being removed.
// The form's submit function will be called as soon as the form
// is generated.
//
// We do this now because the user could be on the 2nd page of
// results, so their remove form might never get generated on
// this page. And also because generating the rest of the page
// would be a waste of time -- the submit function just redirects
// back here.
group_get_removeuser_form($member, $group->id);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment