You are here

function og_rules_action_remove_user in Organic groups 6

Same name and namespace in other branches
  1. 6.2 includes/og.rules.inc \og_rules_action_remove_user()

Action: Unsubscribe user from group.

File

includes/og.rules.inc, line 147
Rules integration for the og module.

Code

function og_rules_action_remove_user($user, $node, $settings) {
  og_delete_subscription($node->nid, $user->uid);
}