function og_remove_admin_confirm_submit in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_remove_admin_confirm_submit()
- 5.2 og.module \og_remove_admin_confirm_submit()
- 5.3 og.module \og_remove_admin_confirm_submit()
- 5.7 og.module \og_remove_admin_confirm_submit()
- 6.2 og.pages.inc \og_remove_admin_confirm_submit()
- 6 og.module \og_remove_admin_confirm_submit()
Confirm og remove admin form
File
- ./
og.module, line 589
Code
function og_remove_admin_confirm_submit($form_id, $form_values) {
$account = $form_values['account'];
$gid = $form_values['gid'];
og_save_subscription($gid, $account->uid, array(
'is_admin' => 0,
));
drupal_set_message(t('%name is no longer a %ga.', array(
'%name' => $account->name,
'%ga' => t('group administrator'),
)));
return "og/users/{$gid}";
}