You are here

function og_confirm_unsubscribe in Organic groups 5

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

Confirm og unsubscription form

1 string reference to 'og_confirm_unsubscribe'
og_unsubscribe in ./og.module

File

./og.module, line 830

Code

function og_confirm_unsubscribe($gid, $node, $uid) {
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $gid,
  );
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $uid,
  );
  $account = user_load(array(
    'uid' => $uid,
  ));
  return confirm_form($form, t('Are you sure you want to remove !name from the group %title?', array(
    '!name' => theme('username', $account),
    '%title' => $node->title,
  )), 'og/users/' . $node->nid, ' ', t('Remove'), t('Cancel'));
}