You are here

function og_create_admin in Organic groups 5.2

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

File

./og.module, line 498

Code

function og_create_admin($gid, $uid) {
  $node = node_load($gid);
  if (node_access('update', $node)) {
    $account = user_load(array(
      'uid' => $uid,
    ));
    return drupal_get_form('og_create_admin_confirm', $gid, $node, $account);
  }
  else {
    drupal_access_denied();
  }
}