function og_rules_condition_entity_in_group in Organic groups 7
Same name and namespace in other branches
- 7.2 og.rules.inc \og_rules_condition_entity_in_group()
Condition: Entity is in group.
1 string reference to 'og_rules_condition_entity_in_group'
- og_rules_condition_info in ./
og.rules.inc - Implements hook_rules_condition_info().
File
- ./
og.rules.inc, line 464 - Rules integration for the Organic groups module.
Code
function og_rules_condition_entity_in_group(EntityDrupalWrapper $entity, $group) {
return og_is_member($group->gid, $entity
->type(), $entity
->value());
}