function og_menu_access_invite in Organic groups 6.2
Same name and namespace in other branches
- 6 og.module \og_menu_access_invite()
Menu access callback to determine if the current user may invite other users.
Parameters
$node: Node object of the group.
Return value
boolean
File
- ./
og.module, line 358 - Code for the Organic Groups module.
Code
function og_menu_access_invite($node) {
return og_is_group_member($node) && ($node->og_selective < OG_INVITE_ONLY || og_is_group_admin($node));
}