function og_rules_condition_user_in_group in Organic groups 6.2
Same name and namespace in other branches
- 6 includes/og.rules.inc \og_rules_condition_user_in_group()
- 7.2 og.rules.inc \og_rules_condition_user_in_group()
- 7 og.rules.inc \og_rules_condition_user_in_group()
Condition: User is group member.
File
- includes/
og.rules.inc, line 278 - Rules integration for the og module.
Code
function og_rules_condition_user_in_group($user, $node, $settings) {
return !empty($node->nid) && og_is_group_member($node->nid, $settings['include_admins'], $user->uid);
}