Same name and namespace in other branches
  1. 7.x modules/openid/openid.pages.inc \openid_user_delete_form()

Present a confirmation form to delete the specified OpenID identity from the system.

See also

openid_user_delete_form_submit()

Related topics

1 string reference to 'openid_user_delete_form'
openid_menu in modules/openid/openid.module
Implementation of hook_menu.

File

modules/openid/openid.pages.inc, line 89
User page callbacks for the openid module.

Code

function openid_user_delete_form($form_state, $account, $aid = 0) {
  $authname = db_result(db_query('SELECT authname FROM {authmap} WHERE uid = %d AND aid = %d', $account->uid, $aid));
  $form = array();
  $form['uid'] = array(
    '#type' => 'value',
    '#value' => $account->uid,
  );
  $form['aid'] = array(
    '#type' => 'value',
    '#value' => $aid,
  );
  return confirm_form($form, t('Are you sure you want to delete the OpenID %authname for %user?', array(
    '%authname' => $authname,
    '%user' => $account->name,
  )), 'user/' . $account->uid . '/openid');
}