function og_manage_form_submit in Organic groups 5
Same name and namespace in other branches
- 5.8 og.module \og_manage_form_submit()
- 5.2 og.module \og_manage_form_submit()
- 5.3 og.module \og_manage_form_submit()
- 5.7 og.module \og_manage_form_submit()
- 6.2 og.pages.inc \og_manage_form_submit()
- 6 og.module \og_manage_form_submit()
File
- ./
og.module, line 402
Code
function og_manage_form_submit($form_id, $form_values) {
global $user;
$passed_values = $form_values;
unset($passed_values['gid'], $passed_values['op'], $passed_values['form_id'], $passed_values['form_token']);
og_save_subscription($form_values['gid'], $user->uid, $passed_values);
drupal_set_message(t('Membership saved.'));
}