function og_rules_remove_entity_from_group in Organic groups 7.2
Same name and namespace in other branches
- 7 og.rules.inc \og_rules_remove_entity_from_group()
Action: Remove entity from group.
1 string reference to 'og_rules_remove_entity_from_group'
- og_rules_action_info in ./
og.rules.inc - Implements hook_rules_action_info().
File
- ./
og.rules.inc, line 365 - Rules integration for the Organic groups module.
Code
function og_rules_remove_entity_from_group(EntityDrupalWrapper $entity, EntityDrupalWrapper $group) {
og_ungroup($group
->type(), $group
->getIdentifier(), $entity
->type(), $entity
->value());
}