function og_deny_user_action in Organic groups 6
Same name and namespace in other branches
- 6.2 modules/og_actions/og_actions.module \og_deny_user_action()
A configurable action to deny a user's group subscription request.
File
- modules/
og_actions/ og_actions.module, line 463
Code
function og_deny_user_action($account, $context) {
if (isset($context['group'])) {
og_save_subscription($context['group'], $account->uid, array(
'is_active' => 0,
));
watchdog('action', "Denied user %name's subscription to %group.", array(
'%name' => $account->name,
'%group' => $context['group'],
));
}
}