function og_rules_condition_user_in_group in Organic groups 7.2
Same name and namespace in other branches
- 6.2 includes/og.rules.inc \og_rules_condition_user_in_group()
- 6 includes/og.rules.inc \og_rules_condition_user_in_group()
- 7 og.rules.inc \og_rules_condition_user_in_group()
Condition: User is in group.
1 string reference to 'og_rules_condition_user_in_group'
- og_rules_condition_info in ./
og.rules.inc - Implements hook_rules_condition_info().
File
- ./
og.rules.inc, line 578 - Rules integration for the Organic groups module.
Code
function og_rules_condition_user_in_group(EntityDrupalWrapper $entity, EntityDrupalWrapper $group, $states = array(
OG_STATE_ACTIVE,
)) {
return og_is_member($group
->type(), $group
->getIdentifier(), $entity
->type(), $entity
->value(), $states);
}