I'm having a very hard time understanding the logic behind determining an unapproved member in hook_og().
// If not a moderated group, update the membership count,
// or if it is a moderated group and unapproved users are to be counted,
// then update the statistics.
if ($node->og_selective != 1 || ($node->og_selective == 1 && variable_get('og_statistics_include_unapproved_members', TRUE))) {
Well first, the constant OG_MODERATED should be used instead of the value 1.
And the group selective setting is irrelevant when it comes to determining if a user is approved or not. In order to do that, you check the $args for $args['is_active'] == 1.
Patch coming
Comments
Comment #1
mstef commentedPatch
Comment #3
mstef commentedRepatched against what's in git right now.. should work..
Comment #4
mstef commentedComment #6
mstef commentedJeez..what am I missing?
Comment #7
dawehnerBoth command's does not work.
Are you sure that the patch applies against the dev version?