function og_create_admin in Organic groups 5.2
Same name and namespace in other branches
- 5.8 og.module \og_create_admin()
- 5 og.module \og_create_admin()
- 5.3 og.module \og_create_admin()
- 5.7 og.module \og_create_admin()
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();
}
}