You are here

function og_create_admin_confirm in Organic groups 6.2

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

OG create admin form

1 string reference to 'og_create_admin_confirm'
og_menu in ./og.module
Implementation of hook_menu().

File

./og.pages.inc, line 117
Page callbacks for Organic groups.

Code

function og_create_admin_confirm($form_state, $node, $account) {
  $form['node'] = array(
    '#type' => 'value',
    '#value' => $node,
  );
  $form['account'] = array(
    '#type' => 'value',
    '#value' => $account,
  );

  // Set the cancel destination, checking for an existing destination in the URL.
  $destination = isset($_GET['destination']) ? urldecode($_GET['destination']) : "og/users/{$node->nid}";
  return confirm_form($form, t('Are you sure you want to make !name a group administrator for the group %title?', array(
    '!name' => theme('username', $account),
    '%title' => $node->title,
  )), $destination, ' ', t('Confirm'), t('Cancel'));
}