You are here

function og_manage_form_submit in Organic groups 5

Same name and namespace in other branches
  1. 5.8 og.module \og_manage_form_submit()
  2. 5.2 og.module \og_manage_form_submit()
  3. 5.3 og.module \og_manage_form_submit()
  4. 5.7 og.module \og_manage_form_submit()
  5. 6.2 og.pages.inc \og_manage_form_submit()
  6. 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.'));
}