function og_delete_admin in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_delete_admin()
- 5.2 og.module \og_delete_admin()
- 5.3 og.module \og_delete_admin()
- 5.7 og.module \og_delete_admin()
File
- ./
og.module, line 561
Code
function og_delete_admin($gid, $uid) {
$node = node_load($gid);
if (og_is_node_admin($node)) {
$account = user_load(array(
'uid' => $uid,
));
return drupal_get_form('og_remove_admin_confirm', $gid, $node, $account);
}
else {
drupal_access_denied();
}
}