function openid_user_delete_form

Menu callback; Delete the specified OpenID identity from the system.

1 string reference to 'openid_user_delete_form'
openid_menu in drupal/core/modules/openid/openid.module
Implements hook_menu().

File

drupal/core/modules/openid/openid.pages.inc, line 112
User page callbacks for the openid module.

Code

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