You are here

function og_ui_user_operations_deny in Organic groups 7

Callback function for admin mass denying users.

1 string reference to 'og_ui_user_operations_deny'
og_ui_og_user_operations in og_ui/og_ui.module
Implement hook_og_user_operations().

File

og_ui/og_ui.module, line 626
Organic groups UI.

Code

function og_ui_user_operations_deny($gid, $uids) {
  $accounts = user_load_multiple($uids);
  foreach ($accounts as $account) {
    og_ungroup($gid, 'user', $account);
  }
}