function og_confirm_subscribe_submit in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_confirm_subscribe_submit()
- 5.2 og.module \og_confirm_subscribe_submit()
- 5.3 og.module \og_confirm_subscribe_submit()
- 5.7 og.module \og_confirm_subscribe_submit()
- 6.2 og.pages.inc \og_confirm_subscribe_submit()
- 6 og.module \og_confirm_subscribe_submit()
Confirm og membership submit handler
File
- ./
og.module, line 737
Code
function og_confirm_subscribe_submit($form_id, $form_values) {
$return = og_subscribe_user($form_values['gid'], $form_values['account'], $form_values['request']);
if (!empty($return['message'])) {
drupal_set_message($return['message']);
}
return 'node/' . $form_values['gid'];
}