function og_confirm_unsubscribe_submit in Organic groups 5.7
Same name and namespace in other branches
- 5.8 og.module \og_confirm_unsubscribe_submit()
- 5 og.module \og_confirm_unsubscribe_submit()
- 5.2 og.module \og_confirm_unsubscribe_submit()
- 5.3 og.module \og_confirm_unsubscribe_submit()
- 6.2 og.pages.inc \og_confirm_unsubscribe_submit()
- 6 og.module \og_confirm_unsubscribe_submit()
Confirm og unsubscription submit handler
File
- ./
og.module, line 842
Code
function og_confirm_unsubscribe_submit($form_id, $form_values) {
global $user;
og_delete_subscription($form_values['gid'], $form_values['uid']);
drupal_set_message(t('User removed from group.'));
if ($user->uid == $form_values['uid']) {
return 'og';
}
else {
return "node/" . $form_values['gid'];
}
}