You are here

function og_confirm_subscribe_submit in Organic groups 6

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

Confirm og membership submit handler

File

./og.module, line 1007

Code

function og_confirm_subscribe_submit($form, &$form_state) {
  $return = og_subscribe_user($form_state['values']['gid'], $form_state['values']['account'], $form_state['values']['request']);
  if (!empty($return['message'])) {
    drupal_set_message($return['message']);
  }
  $form_state['redirect'] = 'node/' . $form_state['values']['gid'];
}