You are here

function og_remove_admin_confirm in Organic groups 6

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

OG remove admin form

1 string reference to 'og_remove_admin_confirm'
og_menu in ./og.module

File

./og.module, line 825

Code

function og_remove_admin_confirm($form_state, $node, $account) {
  $form['gid'] = array(
    '#type' => 'value',
    '#value' => $node->nid,
  );
  $form['account'] = array(
    '#type' => 'value',
    '#value' => $account,
  );
  return confirm_form($form, t('Are you sure you want to remove %name as a group administrator for the group %title?', array(
    '%name' => $account->name,
    '%title' => $node->title,
  )), "og/users/{$node->nid}", ' ', t('Remove'), t('Cancel'));
}