Filter by member-state in rules action "Get group members from group audience"

Created on 6 December 2012, about 12 years ago
Updated 6 November 2023, about 1 year ago

Currently when using Rules with OG, if use the action 'Get group members from group audience' we will get a list of members which includes both pending and blocked users.

If we are using this action as part of a rule to send out content notifications, then this as bad as these notifications will be going to blocked and pending members. It's doubly bad if this is a private group.

I note in og_rules_action_info() that this 'todo' has been noted:

function og_rules_action_info() {
  $items = array();
  $items['og_get_members'] = array(
    'label' => t('Get group members from group audience'),
    'group' => t('Organic groups'),
    'parameter' => array(
      'group_content' => array(
        'type' => 'entity',
        'label' => t('Group content'),
        'description' => t('The group content determining the group audience.'),
      ),
      // @todo: Add option to filter by member-state?
    ),
    'provides' => array(
      'group_members' => array('type' => 'list<user>', 'label' => t('List of group members')),
    ),
    'base' => 'og_rules_get_members',
    'access callback' => 'og_rules_integration_access',
  );

Has there been any work towards completing this todo? If not, I'm happy to have a stab. Any pointers as to how best to go about this?

Feature request
Status

Needs work

Version

2.0

Component

og.module

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024