You are here

function og_delete_admin in Organic groups 5.7

Same name and namespace in other branches
  1. 5.8 og.module \og_delete_admin()
  2. 5 og.module \og_delete_admin()
  3. 5.2 og.module \og_delete_admin()
  4. 5.3 og.module \og_delete_admin()
1 string reference to 'og_delete_admin'
og_menu in ./og.module

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();
  }
}