function og_rules_condition_admin_in_group in Heartbeat 6.4
Function that expresses a condition to check if the user is an admin in the group.
File
- modules/
og_activity/ og_activity.rules.inc, line 55 - Activity integration for organic groups
Code
function og_rules_condition_admin_in_group($user, $node, $settings) {
// Because the node is not known yet in the user object in og_groups,
// we have to check ourselves if the author of the created group is the current user
return !empty($node->nid) && $node->uid == $user->uid;
}