You are here

function openid_user_delete_form in Drupal 7

Same name and namespace in other branches
  1. 6 modules/openid/openid.pages.inc \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 modules/openid/openid.module
Implements hook_menu().

File

modules/openid/openid.pages.inc, line 97
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');
}