You are here

function og_rules_remove_entity_from_group in Organic groups 7

Same name and namespace in other branches
  1. 7.2 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 324
Rules integration for the Organic groups module.

Code

function og_rules_remove_entity_from_group(EntityDrupalWrapper $entity, $group) {

  // Let saving the entity handle by Rules.
  og_ungroup($group->gid, $entity
    ->type(), $entity
    ->value(), FALSE);
}