You are here

function og_manage_form_submit in Organic groups 6

Same name and namespace in other branches
  1. 5.8 og.module \og_manage_form_submit()
  2. 5 og.module \og_manage_form_submit()
  3. 5.2 og.module \og_manage_form_submit()
  4. 5.3 og.module \og_manage_form_submit()
  5. 5.7 og.module \og_manage_form_submit()
  6. 6.2 og.pages.inc \og_manage_form_submit()

File

./og.module, line 685

Code

function og_manage_form_submit($form, &$form_state) {
  global $user;
  $passed_values = $form_state['values'];
  unset($passed_values['gid'], $passed_values['op'], $passed_values['form_id'], $passed_values['form_build_id'], $passed_values['form_token']);
  og_save_subscription($form_state['values']['gid'], $user->uid, $passed_values);
  drupal_set_message(t('Membership saved.'));
}