function og_rules_add_entity_to_group in Organic groups 7
Same name and namespace in other branches
- 7.2 og.rules.inc \og_rules_add_entity_to_group()
Action: Add entity to group.
1 string reference to 'og_rules_add_entity_to_group'
- og_rules_action_info in ./
og.rules.inc - Implements hook_rules_action_info().
File
- ./
og.rules.inc, line 311 - Rules integration for the Organic groups module.
Code
function og_rules_add_entity_to_group(EntityDrupalWrapper $entity, $group) {
// Let saving the entity handle by Rules.
og_group($group->gid, array(
'entity type' => $entity
->type(),
'entity' => $entity
->value(),
'save' => FALSE,
'force reload' => FALSE,
));
}